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