LeviLamina
Loading...
Searching...
No Matches
IDataInput.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/platform/Result.h"
7
8class IDataInput {
9public:
10 // virtual functions
11 // NOLINTBEGIN
12 virtual ~IDataInput() = default;
13
14 virtual ::Bedrock::Result<::std::string> readStringResult() = 0;
15
16 virtual ::Bedrock::Result<::std::string> readLongStringResult() = 0;
17
18 virtual ::Bedrock::Result<float> readFloatResult() = 0;
19
20 virtual ::Bedrock::Result<double> readDoubleResult() = 0;
21
22 virtual ::Bedrock::Result<uchar> readByteResult() = 0;
23
24 virtual ::Bedrock::Result<short> readShortResult() = 0;
25
26 virtual ::Bedrock::Result<int> readIntResult() = 0;
27
28 virtual ::Bedrock::Result<int64> readLongLongResult() = 0;
29
30 virtual ::Bedrock::Result<void> readBytesResult(void*, uint64) = 0;
31
32 virtual uint64 numBytesLeft() const = 0;
33 // NOLINTEND
34
35public:
36 // member functions
37 // NOLINTBEGIN
38 MCAPI uchar readByte();
39
40 MCAPI bool readBytes(void* data, uint64 bytes);
41
42 MCAPI int readInt();
43
44 MCAPI int64 readLongLong();
45
46 MCAPI ::std::string readLongString();
47
48 MCAPI short readShort();
49
50 MCAPI ::std::string readString();
51 // NOLINTEND
52
53public:
54 // virtual function thunks
55 // NOLINTBEGIN
56
57 // NOLINTEND
58
59public:
60 // vftables
61 // NOLINTBEGIN
62 MCNAPI static void** $vftable();
63 // NOLINTEND
64};
Definition IDataInput.h:8
static MCAPI void ** $vftable()