Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
BinarySchemaReader.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
13// clang-format on
14
15namespace cereal {
16
17class BinarySchemaReader : public ::cereal::SchemaReader {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 8, ::ReadOnlyBinaryStream&> mStream;
22 // NOLINTEND
23
24public:
25 // prevent constructor by default
26 BinarySchemaReader& operator=(BinarySchemaReader const&);
27 BinarySchemaReader(BinarySchemaReader const&);
28 BinarySchemaReader();
29
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 virtual bool isValid() const /*override*/;
34
35 virtual ::std::optional<uint64> remainingInputBytes() const /*override*/;
36
37 virtual ::cereal::SchemaRWType expectedType() const /*override*/;
38
39 virtual ::Bedrock::Result<void> asNull() /*override*/;
40
41 virtual ::Bedrock::Result<bool> asBool() /*override*/;
42
43 virtual ::Bedrock::Result<schar> asInt8() /*override*/;
44
45 virtual ::Bedrock::Result<uchar> asUInt8() /*override*/;
46
47 virtual ::Bedrock::Result<short> asInt16() /*override*/;
48
49 virtual ::Bedrock::Result<ushort> asUInt16() /*override*/;
50
51 virtual ::Bedrock::Result<int> asInt32() /*override*/;
52
53 virtual ::Bedrock::Result<uint> asUInt32() /*override*/;
54
55 virtual ::Bedrock::Result<int64> asInt64() /*override*/;
56
57 virtual ::Bedrock::Result<uint64> asUInt64() /*override*/;
58
59 virtual ::Bedrock::Result<float> asFloat() /*override*/;
60
61 virtual ::Bedrock::Result<double> asDouble() /*override*/;
62
63 virtual ::Bedrock::Result<::std::string> asString(uint64 maxInputLength) /*override*/;
64
65 virtual ::Bedrock::Result<void>
66 asRawBytes(::std::function<::gsl::span<uchar>(uint64)> storage, uint64 maxInputLength) /*override*/;
67
68 virtual ::std::optional<bool> additionalDataAsBool() /*override*/;
69
70 virtual ::std::optional<uint> additionalDataAsUInt32() /*override*/;
71
72 virtual ::std::optional<::std::string> additionalDataAsString(uint64 maxInputLength) /*override*/;
73
74 virtual uint64 members() /*override*/;
75
76 virtual uint64 length(uint64 expectedSize) /*override*/;
77
78 virtual bool pushMember(::std::string_view const) /*override*/;
79
80 virtual ::std::string_view pushNextMember() /*override*/;
81
82 virtual void pushElement(uint64) /*override*/;
83
84 virtual void pop() /*override*/;
85 // NOLINTEND
86
87public:
88 // virtual function thunks
89 // NOLINTBEGIN
90 MCNAPI bool $isValid() const;
91
92 MCNAPI ::std::optional<uint64> $remainingInputBytes() const;
93
94 MCNAPI ::cereal::SchemaRWType $expectedType() const;
95
96 MCNAPI ::Bedrock::Result<void> $asNull();
97
98 MCNAPI ::Bedrock::Result<bool> $asBool();
99
100 MCNAPI ::Bedrock::Result<schar> $asInt8();
101
102 MCNAPI ::Bedrock::Result<uchar> $asUInt8();
103
104 MCNAPI ::Bedrock::Result<short> $asInt16();
105
106 MCNAPI ::Bedrock::Result<ushort> $asUInt16();
107
108 MCNAPI ::Bedrock::Result<int> $asInt32();
109
110 MCNAPI ::Bedrock::Result<uint> $asUInt32();
111
112 MCNAPI ::Bedrock::Result<int64> $asInt64();
113
114 MCNAPI ::Bedrock::Result<uint64> $asUInt64();
115
116 MCNAPI ::Bedrock::Result<float> $asFloat();
117
118 MCNAPI ::Bedrock::Result<double> $asDouble();
119
120 MCNAPI ::Bedrock::Result<::std::string> $asString(uint64 maxInputLength);
121
122 MCNAPI ::Bedrock::Result<void>
123 $asRawBytes(::std::function<::gsl::span<uchar>(uint64)> storage, uint64 maxInputLength);
124
125 MCNAPI ::std::optional<bool> $additionalDataAsBool();
126
127 MCNAPI ::std::optional<uint> $additionalDataAsUInt32();
128
129 MCNAPI ::std::optional<::std::string> $additionalDataAsString(uint64 maxInputLength);
130
131 MCNAPI uint64 $members();
132
133 MCNAPI uint64 $length(uint64 expectedSize);
134
135 MCNAPI bool $pushMember(::std::string_view const);
136
137 MCNAPI ::std::string_view $pushNextMember();
138
139 MCNAPI void $pushElement(uint64);
140
141 MCNAPI void $pop();
142
143
144 // NOLINTEND
145
146public:
147 // vftables
148 // NOLINTBEGIN
149 MCNAPI static void** $vftable();
150 // NOLINTEND
151};
152
153} // namespace cereal
Definition ReadOnlyBinaryStream.h:8
MCAPI ::std::optional< uint64 > $remainingInputBytes() const
MCAPI uint64 $length(uint64 expectedSize)
MCAPI ::Bedrock::Result< short > $asInt16()
static MCAPI void ** $vftable()
MCAPI ::Bedrock::Result< uint64 > $asUInt64()
MCAPI::std::string_view $pushNextMember()
MCAPI ::Bedrock::Result<::std::string > $asString(uint64 maxInputLength)
MCAPI ::Bedrock::Result< double > $asDouble()
MCAPI ::Bedrock::Result< ushort > $asUInt16()
MCAPI::cereal::SchemaRWType $expectedType() const
MCAPI ::std::optional< uint > $additionalDataAsUInt32()
MCAPI ::std::optional<::std::string > $additionalDataAsString(uint64 maxInputLength)
MCAPI ::Bedrock::Result< int > $asInt32()
MCAPI ::Bedrock::Result< int64 > $asInt64()
MCAPI ::Bedrock::Result< schar > $asInt8()
MCAPI ::Bedrock::Result< uchar > $asUInt8()
MCAPI ::Bedrock::Result< bool > $asBool()
MCAPI void $pushElement(uint64)
MCAPI ::Bedrock::Result< void > $asNull()
MCAPI ::Bedrock::Result< void > $asRawBytes(::std::function<::gsl::span< uchar >(uint64)> storage, uint64 maxInputLength)
MCAPI ::Bedrock::Result< float > $asFloat()
MCAPI bool $pushMember(::std::string_view const)
MCAPI bool $isValid() const
MCAPI ::std::optional< bool > $additionalDataAsBool()
MCAPI ::Bedrock::Result< uint > $asUInt32()
Definition SchemaReader.h:13