mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-22 06:45:36 +00:00
restructure codebase according to vcproj filters
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
// 4J Stu - We are not using GZIP compression, so this is just a pass through
|
||||
// class
|
||||
|
||||
#include "OutputStream.h"
|
||||
|
||||
class GZIPOutputStream : public OutputStream {
|
||||
private:
|
||||
OutputStream* stream;
|
||||
|
||||
public:
|
||||
GZIPOutputStream(OutputStream* out) : stream(out) {};
|
||||
virtual void write(unsigned int b) { stream->write(b); };
|
||||
virtual void write(byteArray b) { stream->write(b); };
|
||||
virtual void write(byteArray b, unsigned int offset, unsigned int length) {
|
||||
stream->write(b, offset, length);
|
||||
};
|
||||
virtual void close() { stream->close(); };
|
||||
virtual void flush() {}
|
||||
};
|
||||
Reference in New Issue
Block a user