Files
4jcraft/minecraft/java/include/java/InputOutputStream/GZIPInputStream.h
T
MatthewBeshay 7ddfaeb59e refactor: remove arrayWithLength, replace with std::vector
Eliminates the custom arrayWithLength<T> wrapper and all typedefs, replacing with std::vector<T> directly.
2026-03-31 12:06:19 +11:00

24 lines
758 B
C++

#pragma once
// 4J Stu - We are not using GZIP compression, so this is just a pass through
// class
#include <cstdint>
#include "../../../../Minecraft.World/ConsoleHelpers/ArrayWithLength.h" // 4jcraft TODO
#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(std::vector<uint8_t>& b) { return stream->read(b); };
virtual int read(std::vector<uint8_t>& b, unsigned int offset, unsigned int length) {
return stream->read(b, offset, length);
};
virtual void close() { return stream->close(); };
virtual int64_t skip(int64_t n) { return 0; };
};