LeviLamina
Loading...
Searching...
No Matches
NBTSchemaReader.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/cereal/schema/SchemaRWType.h"
7#include "mc/deps/cereal/schema/SchemaReader.h"
8#include "mc/platform/Result.h"
9
10class NBTSchemaReader : public ::cereal::SchemaReader {
11public:
12 // NBTSchemaReader inner types declare
13 // clang-format off
14 struct State;
15 // clang-format on
16
17 // NBTSchemaReader inner types define
18 struct State {
19 public:
20 // member variables
21 // NOLINTBEGIN
24 // NOLINTEND
25
26 public:
27 // prevent constructor by default
28 State& operator=(State const&);
29 State(State const&);
30 State();
31 };
32
33public:
34 // member variables
35 // NOLINTBEGIN
38 // NOLINTEND
39
40public:
41 // prevent constructor by default
42 NBTSchemaReader& operator=(NBTSchemaReader const&);
43 NBTSchemaReader(NBTSchemaReader const&);
44 NBTSchemaReader();
45
46public:
47 // virtual functions
48 // NOLINTBEGIN
49 virtual bool isValid() const /*override*/;
50
51 virtual ::cereal::SchemaRWType expectedType() const /*override*/;
52
53 virtual ::Bedrock::Result<void> asNull() /*override*/;
54
55 virtual ::Bedrock::Result<bool> asBool() /*override*/;
56
57 virtual ::Bedrock::Result<schar> asInt8() /*override*/;
58
59 virtual ::Bedrock::Result<uchar> asUInt8() /*override*/;
60
61 virtual ::Bedrock::Result<short> asInt16() /*override*/;
62
63 virtual ::Bedrock::Result<ushort> asUInt16() /*override*/;
64
65 virtual ::Bedrock::Result<int> asInt32() /*override*/;
66
67 virtual ::Bedrock::Result<uint> asUInt32() /*override*/;
68
69 virtual ::Bedrock::Result<int64> asInt64() /*override*/;
70
71 virtual ::Bedrock::Result<uint64> asUInt64() /*override*/;
72
73 virtual ::Bedrock::Result<float> asFloat() /*override*/;
74
75 virtual ::Bedrock::Result<double> asDouble() /*override*/;
76
77 virtual ::Bedrock::Result<::std::string> asString(uint64 maxInputLength) /*override*/;
78
79 virtual ::Bedrock::Result<void>
80 asRawBytes(::std::function<::gsl::span<uchar>(uint64)> storage, uint64 maxInputLength) /*override*/;
81
82 virtual ::std::optional<bool> additionalDataAsBool() /*override*/;
83
84 virtual ::std::optional<uint> additionalDataAsUInt32() /*override*/;
85
86 virtual ::std::optional<::std::string> additionalDataAsString(uint64) /*override*/;
87
88 virtual uint64 members() /*override*/;
89
90 virtual uint64 length(uint64 expectedSize) /*override*/;
91
92 virtual bool pushMember(::std::string_view const name) /*override*/;
93
94 virtual ::std::string_view pushNextMember() /*override*/;
95
96 virtual void pushElement(uint64 index) /*override*/;
97
98 virtual void pop() /*override*/;
99
100 virtual ~NBTSchemaReader() /*override*/;
101 // NOLINTEND
102
103public:
104 // destructor thunk
105 // NOLINTBEGIN
106 MCNAPI void $dtor();
107 // NOLINTEND
108
109public:
110 // virtual function thunks
111 // NOLINTBEGIN
112 MCNAPI bool $isValid() const;
113
114 MCNAPI ::cereal::SchemaRWType $expectedType() const;
115
116 MCNAPI ::Bedrock::Result<void> $asNull();
117
118 MCNAPI ::Bedrock::Result<bool> $asBool();
119
120 MCNAPI ::Bedrock::Result<schar> $asInt8();
121
122 MCNAPI ::Bedrock::Result<uchar> $asUInt8();
123
124 MCNAPI ::Bedrock::Result<short> $asInt16();
125
126 MCNAPI ::Bedrock::Result<ushort> $asUInt16();
127
128 MCNAPI ::Bedrock::Result<int> $asInt32();
129
130 MCNAPI ::Bedrock::Result<uint> $asUInt32();
131
132 MCNAPI ::Bedrock::Result<int64> $asInt64();
133
134 MCNAPI ::Bedrock::Result<uint64> $asUInt64();
135
136 MCNAPI ::Bedrock::Result<float> $asFloat();
137
138 MCNAPI ::Bedrock::Result<double> $asDouble();
139
140 MCNAPI ::Bedrock::Result<::std::string> $asString(uint64 maxInputLength);
141
142 MCNAPI ::Bedrock::Result<void>
143 $asRawBytes(::std::function<::gsl::span<uchar>(uint64)> storage, uint64 maxInputLength);
144
145 MCNAPI ::std::optional<bool> $additionalDataAsBool();
146
147 MCNAPI ::std::optional<uint> $additionalDataAsUInt32();
148
149 MCNAPI ::std::optional<::std::string> $additionalDataAsString(uint64);
150
151 MCNAPI uint64 $members();
152
153 MCNAPI uint64 $length(uint64 expectedSize);
154
155 MCNAPI bool $pushMember(::std::string_view const name);
156
157 MCNAPI ::std::string_view $pushNextMember();
158
159 MCNAPI void $pushElement(uint64 index);
160
161 MCNAPI void $pop();
162
163
164 // NOLINTEND
165
166public:
167 // vftables
168 // NOLINTBEGIN
169 MCNAPI static void** $vftable();
170 // NOLINTEND
171};
MCAPI ::Bedrock::Result< void > $asRawBytes(::std::function<::gsl::span< uchar >(uint64)> storage, uint64 maxInputLength)
MCAPI ::Bedrock::Result< uint > $asUInt32()
MCAPI ::Bedrock::Result< short > $asInt16()
MCAPI ::Bedrock::Result<::std::string > $asString(uint64 maxInputLength)
MCAPI ::Bedrock::Result< uchar > $asUInt8()
MCAPI ::Bedrock::Result< int64 > $asInt64()
MCAPI ::Bedrock::Result< int > $asInt32()
MCAPI void $pushElement(uint64 index)
MCAPI::std::string_view $pushNextMember()
MCAPI ::std::optional< bool > $additionalDataAsBool()
MCAPI ::std::optional< uint > $additionalDataAsUInt32()
MCAPI uint64 $length(uint64 expectedSize)
MCAPI ::Bedrock::Result< void > $asNull()
MCAPI ::std::optional<::std::string > $additionalDataAsString(uint64)
MCAPI ::Bedrock::Result< bool > $asBool()
MCAPI ::Bedrock::Result< double > $asDouble()
MCAPI void $dtor()
MCAPI void $pop()
static MCAPI void ** $vftable()
MCAPI::cereal::SchemaRWType $expectedType() const
MCAPI bool $isValid() const
MCAPI ::Bedrock::Result< float > $asFloat()
MCAPI bool $pushMember(::std::string_view const name)
MCAPI ::Bedrock::Result< uint64 > $asUInt64()
MCAPI uint64 $members()
MCAPI ::Bedrock::Result< ushort > $asUInt16()
MCAPI ::Bedrock::Result< schar > $asInt8()
STL namespace.
Definition NBTSchemaReader.h:18
Definition SchemaReader.h:12
Definition Alias.h:14