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 // virtual functions
20 // NOLINTBEGIN
21 // vIndex: 0
22 virtual ~ReadOnlyBinaryStream();
23
24 // vIndex: 1
25 virtual ::Bedrock::Result<void> read(void* target, uint64 num);
26 // NOLINTEND
27
28public:
29 // member functions
30 // NOLINTBEGIN
31 MCAPI ReadOnlyBinaryStream(::std::string_view buffer, bool copyBuffer);
32
33 MCAPI bool canReadBool() const;
34
35 MCAPI ::Bedrock::Result<void> ensureReadCompleted() const;
36
37 MCAPI ::Bedrock::Result<bool> getBool();
38
39 MCAPI ::Bedrock::Result<uchar> getByte();
40
41 MCAPI ::Bedrock::Result<double> getDouble();
42
43 MCAPI ::Bedrock::Result<float> getFloat();
44
45 MCAPI ::Bedrock::Result<int> getSignedBigEndianInt();
46
47 MCAPI ::Bedrock::Result<int> getSignedInt();
48
49 MCAPI ::Bedrock::Result<int64> getSignedInt64();
50
51 MCAPI ::Bedrock::Result<short> getSignedShort();
52
53 MCAPI ::Bedrock::Result<::std::string> getString(uint64 maxLength);
54
55 MCAPI ::Bedrock::Result<void> getString(::std::string& outStringStream, uint64 maxLength);
56
57 MCAPI ::Bedrock::Result<uchar> getUnsignedChar();
58
59 MCAPI ::Bedrock::Result<uint> getUnsignedInt();
60
61 MCAPI ::Bedrock::Result<uint64> getUnsignedInt64();
62
63 MCAPI ::Bedrock::Result<ushort> getUnsignedShort();
64
65 MCAPI ::Bedrock::Result<uint> getUnsignedVarInt();
66
67 MCAPI ::Bedrock::Result<uint64> getUnsignedVarInt64();
68
69 MCAPI ::Bedrock::Result<int> getVarInt();
70
71 MCAPI ::Bedrock::Result<int64> getVarInt64();
72
73 MCAPI void setReadPointer(uint64 pos);
74 // NOLINTEND
75
76public:
77 // constructor thunks
78 // NOLINTBEGIN
79 MCAPI void* $ctor(::std::string_view buffer, bool copyBuffer);
80 // NOLINTEND
81
82public:
83 // destructor thunk
84 // NOLINTBEGIN
85 MCFOLD void $dtor();
86 // NOLINTEND
87
88public:
89 // virtual function thunks
90 // NOLINTBEGIN
91 MCAPI ::Bedrock::Result<void> $read(void* target, uint64 num);
92 // NOLINTEND
93
94public:
95 // vftables
96 // NOLINTBEGIN
97 MCAPI static void** $vftable();
98 // NOLINTEND
99};
Definition ReadOnlyBinaryStream.h:8
Definition buffer.h:5