LeviLamina
Loading...
Searching...
No Matches
ReadOnlyBinaryStream.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/platform/Result.h"
7
9public:
10 // member variables
11 // NOLINTBEGIN
12 ::std::string mOwnedBuffer;
13 ::std::string_view mView;
14 uint64 mReadPointer;
15 bool mHasOverflowed;
16 // NOLINTEND
17
18public:
19 // prevent constructor by default
21
22public:
23 // virtual functions
24 // NOLINTBEGIN
25 // vIndex: 0
26 virtual ~ReadOnlyBinaryStream();
27
28 // vIndex: 1
29 virtual ::Bedrock::Result<void> read(void* target, uint64 num);
30 // NOLINTEND
31
32public:
33 // member functions
34 // NOLINTBEGIN
35 MCAPI ReadOnlyBinaryStream(::std::string_view buffer, bool copyBuffer);
36
37 MCAPI bool canReadBool() const;
38
39 MCAPI ::Bedrock::Result<void> ensureReadCompleted() const;
40
41 MCAPI ::Bedrock::Result<bool> getBool();
42
43 MCAPI ::Bedrock::Result<uchar> getByte();
44
45 MCAPI ::Bedrock::Result<double> getDouble();
46
47 MCAPI ::Bedrock::Result<float> getFloat();
48
49 MCAPI ::Bedrock::Result<int> getSignedBigEndianInt();
50
51 MCAPI ::Bedrock::Result<int> getSignedInt();
52
53 MCAPI ::Bedrock::Result<int64> getSignedInt64();
54
55 MCAPI ::Bedrock::Result<short> getSignedShort();
56
57 MCAPI ::Bedrock::Result<::std::string> getString(uint64 maxLength);
58
59 MCAPI ::Bedrock::Result<void> getString(::std::string& outStringStream, uint64 maxLength);
60
61 MCAPI ::Bedrock::Result<uchar> getUnsignedChar();
62
63 MCAPI ::Bedrock::Result<uint> getUnsignedInt();
64
65 MCAPI ::Bedrock::Result<uint64> getUnsignedInt64();
66
67 MCAPI ::Bedrock::Result<ushort> getUnsignedShort();
68
69 MCAPI ::Bedrock::Result<uint> getUnsignedVarInt();
70
71 MCAPI ::Bedrock::Result<uint64> getUnsignedVarInt64();
72
73 MCAPI ::Bedrock::Result<int> getVarInt();
74
75 MCAPI ::Bedrock::Result<int64> getVarInt64();
76
77 MCAPI void setReadPointer(uint64 pos);
78 // NOLINTEND
79
80public:
81 // constructor thunks
82 // NOLINTBEGIN
83 MCAPI void* $ctor(::std::string_view buffer, bool copyBuffer);
84 // NOLINTEND
85
86public:
87 // destructor thunk
88 // NOLINTBEGIN
89 MCFOLD void $dtor();
90 // NOLINTEND
91
92public:
93 // virtual function thunks
94 // NOLINTBEGIN
95 MCAPI ::Bedrock::Result<void> $read(void* target, uint64 num);
96 // NOLINTEND
97
98public:
99 // vftables
100 // NOLINTBEGIN
101 MCNAPI static void** $vftable();
102 // NOLINTEND
103};
Definition ReadOnlyBinaryStream.h:8
static MCAPI void ** $vftable()
Definition buffer.h:5