12 ::std::string mOwnedBuffer;
13 ::std::string_view mView;
29 virtual ::Bedrock::Result<void> read(
void* target, uint64 num);
37 MCAPI
bool canReadBool()
const;
39 MCAPI ::Bedrock::Result<void> ensureReadCompleted()
const;
41 MCAPI ::Bedrock::Result<bool> getBool();
43 MCAPI ::Bedrock::Result<uchar> getByte();
45 MCAPI ::Bedrock::Result<double> getDouble();
47 MCAPI ::Bedrock::Result<float> getFloat();
49 MCAPI ::Bedrock::Result<int> getSignedBigEndianInt();
51 MCAPI ::Bedrock::Result<int> getSignedInt();
53 MCAPI ::Bedrock::Result<int64> getSignedInt64();
55 MCAPI ::Bedrock::Result<short> getSignedShort();
57 MCAPI ::Bedrock::Result<::std::string> getString(uint64 maxLength);
59 MCAPI ::Bedrock::Result<void> getString(::std::string& outStringStream, uint64 maxLength);
61 MCAPI ::Bedrock::Result<uchar> getUnsignedChar();
63 MCAPI ::Bedrock::Result<uint> getUnsignedInt();
65 MCAPI ::Bedrock::Result<uint64> getUnsignedInt64();
67 MCAPI ::Bedrock::Result<ushort> getUnsignedShort();
69 MCAPI ::Bedrock::Result<uint> getUnsignedVarInt();
71 MCAPI ::Bedrock::Result<uint64> getUnsignedVarInt64();
73 MCAPI ::Bedrock::Result<int> getVarInt();
75 MCAPI ::Bedrock::Result<int64> getVarInt64();
77 MCAPI
void setReadPointer(uint64 pos);
83 MCAPI
void* $ctor(::std::string_view
buffer,
bool copyBuffer);
95 MCAPI ::Bedrock::Result<void> $read(
void* target, uint64 num);