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