LeviLamina
Loading...
Searching...
No Matches
BasicSerializerContext.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/cereal/ContextArea.h"
7#include "mc/deps/cereal/ResultCode.h"
8#include "mc/deps/core/container/small_vector.h"
9#include "mc/deps/core/string/StaticOptimizedString.h"
10
11namespace cereal {
12
14public:
15 // BasicSerializerContext inner types declare
16 // clang-format off
17 struct TokenHolder;
18 struct Context;
19 struct LogEntry;
20 // clang-format on
21
22 // BasicSerializerContext inner types define
23 enum class ContextType : int {
24 ArrayElem = 0,
25 Member = 1,
26 Root = 2,
27 };
28
29 struct TokenHolder {
30 public:
31 // member variables
32 // NOLINTBEGIN
33 ::ll::TypedStorage<8, 16, ::std::variant<uint, ::Bedrock::StaticOptimizedString>> mToken;
34 // NOLINTEND
35
36 public:
37 // member functions
38 // NOLINTBEGIN
39 MCAPI explicit operator ::std::string_view() const;
40 // NOLINTEND
41 };
42
43 struct Context {
44 public:
45 // member variables
46 // NOLINTBEGIN
47 ::ll::TypedStorage<4, 4, ::cereal::BasicSerializerContext::ContextType> mType;
48 ::ll::TypedStorage<8, 16, ::cereal::BasicSerializerContext::TokenHolder> mToken;
49 ::ll::TypedStorage<4, 4, uint> mTokenId;
50 ::ll::TypedStorage<4, 4, uint> mPrevIndex;
51 // NOLINTEND
52 };
53
54 struct LogEntry {
55 public:
56 // member variables
57 // NOLINTBEGIN
58 ::ll::TypedStorage<2, 2, ::cereal::ResultCode> mResultCode;
59 ::ll::TypedStorage<8, 16, ::cereal::BasicSerializerContext::TokenHolder> mMessage;
60 ::ll::TypedStorage<4, 4, uint> mContextIndex;
61 ::ll::TypedStorage<8, 8, ::Bedrock::small_vector<::cereal::BasicSerializerContext::Context, 8> const*> mStack;
62 ::ll::TypedStorage<4, 4, uint> mGeneration;
63 // NOLINTEND
64 };
65
66public:
67 // member variables
68 // NOLINTBEGIN
69 ::ll::TypedStorage<4, 4, uint> mCurrentIndex;
70 ::ll::TypedStorage<8, 272, ::Bedrock::small_vector<::cereal::BasicSerializerContext::Context, 8>> mStack;
71 ::ll::TypedStorage<8, 400, ::Bedrock::small_vector<::cereal::BasicSerializerContext::LogEntry, 8>> mLog;
72 ::ll::TypedStorage<2, 2, ::cereal::ResultCode> mErrorCodes;
73 ::ll::TypedStorage<1, 1, ::cereal::ContextArea> mContextArea;
74 // NOLINTEND
75
76public:
77 // member functions
78 // NOLINTBEGIN
79 MCAPI ::std::string _getContextString(uint index) const;
80
81 MCAPI ::std::vector<::cereal::BasicSerializerContext::Context>
82 contextFor(::cereal::BasicSerializerContext::LogEntry const& entry) const;
83
84 MCAPI ::std::vector<::std::string> errors() const;
85
87 // NOLINTEND
88
89public:
90 // destructor thunk
91 // NOLINTBEGIN
92 MCAPI void $dtor();
93 // NOLINTEND
94};
95
96} // namespace cereal
Definition BasicSerializerContext.h:13
Definition BasicSerializerContext.h:43
Definition BasicSerializerContext.h:54
Definition BasicSerializerContext.h:29