diff options
| author | daoge_cmd <3523206925@qq.com> | 2026-03-01 12:16:08 +0800 |
|---|---|---|
| committer | daoge_cmd <3523206925@qq.com> | 2026-03-01 12:16:08 +0800 |
| commit | b691c43c44ff180d10e7d4a9afc83b98551ff586 (patch) | |
| tree | 3e9849222cbc6ba49f2f1fc6e5fe7179632c7390 /Minecraft.World/DataInputStream.h | |
| parent | def8cb415354ac390b7e89052a50605285f1aca9 (diff) | |
Initial commit
Diffstat (limited to 'Minecraft.World/DataInputStream.h')
| -rw-r--r-- | Minecraft.World/DataInputStream.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Minecraft.World/DataInputStream.h b/Minecraft.World/DataInputStream.h new file mode 100644 index 00000000..f69d490a --- /dev/null +++ b/Minecraft.World/DataInputStream.h @@ -0,0 +1,35 @@ +#pragma once +// 4J Stu - Represents Java standard library class (although we miss out an intermediate inheritance class that we don't care about) + +#include "InputStream.h" +#include "DataInput.h" + +class DataInputStream : public InputStream, public DataInput +{ +private: + InputStream *stream; + +public: + DataInputStream(InputStream *in); + virtual int read(); + virtual int read(byteArray b); + virtual int read(byteArray b, unsigned int offset, unsigned int length); + virtual void close(); + virtual bool readBoolean(); + virtual byte readByte(); + virtual unsigned char readUnsignedByte(); + virtual wchar_t readChar(); + virtual bool readFully(byteArray b); + virtual bool readFully(charArray b); + virtual double readDouble(); + virtual float readFloat(); + virtual int readInt(); + virtual __int64 readLong(); + virtual short readShort(); + virtual wstring readUTF(); + void deleteChildStream(); + virtual int readUTFChar(); + virtual PlayerUID readPlayerUID(); // 4J Added + virtual __int64 skip(__int64 n); + virtual int skipBytes(int n); +};
\ No newline at end of file |
