From b691c43c44ff180d10e7d4a9afc83b98551ff586 Mon Sep 17 00:00:00 2001 From: daoge_cmd <3523206925@qq.com> Date: Sun, 1 Mar 2026 12:16:08 +0800 Subject: Initial commit --- Minecraft.World/GZIPInputStream.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Minecraft.World/GZIPInputStream.h (limited to 'Minecraft.World/GZIPInputStream.h') diff --git a/Minecraft.World/GZIPInputStream.h b/Minecraft.World/GZIPInputStream.h new file mode 100644 index 00000000..f852518b --- /dev/null +++ b/Minecraft.World/GZIPInputStream.h @@ -0,0 +1,17 @@ +#pragma once +// 4J Stu - We are not using GZIP compression, so this is just a pass through class + +#include "InputStream.h" + +class GZIPInputStream : public InputStream +{ +private: + InputStream *stream; +public: + GZIPInputStream( InputStream *out ) : stream( out ) {}; + virtual int read() { return stream->read(); }; + virtual int read(byteArray b) { return stream->read( b ); }; + virtual int read(byteArray b, unsigned int offset, unsigned int length) { return stream->read(b, offset, length); }; + virtual void close() { return stream->close(); }; + virtual __int64 skip(__int64 n) { return 0; }; +}; \ No newline at end of file -- cgit v1.2.3