Lines Matching full:flatbuffers

1 // automatically generated by the FlatBuffers compiler, do not modify
7 #include "flatbuffers/flatbuffers.h"
27 inline const flatbuffers::TypeTable *NestedStructTypeTable();
29 inline const flatbuffers::TypeTable *ArrayStructTypeTable();
31 inline const flatbuffers::TypeTable *ArrayTableTypeTable();
61 if (flatbuffers::IsOutRange(e, TestEnum::A, TestEnum::C)) return ""; in EnumNameTestEnum()
75 static const flatbuffers::TypeTable *MiniReflectTypeTable() { in MiniReflectTypeTable()
82 : b_(flatbuffers::EndianScalar(static_cast<int8_t>(_b))) { in NestedStruct()
88 const flatbuffers::Array<int32_t, 2> *a() const { in a()
89 return reinterpret_cast<const flatbuffers::Array<int32_t, 2> *>(a_); in a()
91 flatbuffers::Array<int32_t, 2> *mutable_a() { in mutable_a()
92 return reinterpret_cast<flatbuffers::Array<int32_t, 2> *>(a_); in mutable_a()
95 return static_cast<MyGame::Example::TestEnum>(flatbuffers::EndianScalar(b_)); in b()
98 flatbuffers::WriteScalar(&b_, static_cast<int8_t>(_b)); in mutate_b()
100 const flatbuffers::Array<MyGame::Example::TestEnum, 2> *c() const { in c()
101 return reinterpret_cast<const flatbuffers::Array<MyGame::Example::TestEnum, 2> *>(c_); in c()
103 flatbuffers::Array<MyGame::Example::TestEnum, 2> *mutable_c() { in mutable_c()
104 return reinterpret_cast<flatbuffers::Array<MyGame::Example::TestEnum, 2> *>(c_); in mutable_c()
106 const flatbuffers::Array<int64_t, 2> *d() const { in d()
107 return reinterpret_cast<const flatbuffers::Array<int64_t, 2> *>(d_); in d()
109 flatbuffers::Array<int64_t, 2> *mutable_d() { in mutable_d()
110 return reinterpret_cast<flatbuffers::Array<int64_t, 2> *>(d_); in mutable_d()
140 static const flatbuffers::TypeTable *MiniReflectTypeTable() { in MiniReflectTypeTable()
147 : a_(flatbuffers::EndianScalar(_a)), in ArrayStruct()
148 c_(flatbuffers::EndianScalar(_c)), in ArrayStruct()
152 e_(flatbuffers::EndianScalar(_e)), in ArrayStruct()
161 return flatbuffers::EndianScalar(a_); in a()
164 flatbuffers::WriteScalar(&a_, _a); in mutate_a()
166 const flatbuffers::Array<int32_t, 15> *b() const { in b()
167 return reinterpret_cast<const flatbuffers::Array<int32_t, 15> *>(b_); in b()
169 flatbuffers::Array<int32_t, 15> *mutable_b() { in mutable_b()
170 return reinterpret_cast<flatbuffers::Array<int32_t, 15> *>(b_); in mutable_b()
173 return flatbuffers::EndianScalar(c_); in c()
176 flatbuffers::WriteScalar(&c_, _c); in mutate_c()
178 const flatbuffers::Array<MyGame::Example::NestedStruct, 2> *d() const { in d()
179 return reinterpret_cast<const flatbuffers::Array<MyGame::Example::NestedStruct, 2> *>(d_); in d()
181 flatbuffers::Array<MyGame::Example::NestedStruct, 2> *mutable_d() { in mutable_d()
182 return reinterpret_cast<flatbuffers::Array<MyGame::Example::NestedStruct, 2> *>(d_); in mutable_d()
185 return flatbuffers::EndianScalar(e_); in e()
188 flatbuffers::WriteScalar(&e_, _e); in mutate_e()
190 const flatbuffers::Array<int64_t, 2> *f() const { in f()
191 return reinterpret_cast<const flatbuffers::Array<int64_t, 2> *>(f_); in f()
193 flatbuffers::Array<int64_t, 2> *mutable_f() { in mutable_f()
194 return reinterpret_cast<flatbuffers::Array<int64_t, 2> *>(f_); in mutable_f()
214 struct ArrayTableT : public flatbuffers::NativeTable {
216 flatbuffers::unique_ptr<MyGame::Example::ArrayStruct> a;
231 struct ArrayTable FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
234 static const flatbuffers::TypeTable *MiniReflectTypeTable() { in MiniReflectTypeTable()
246 bool Verify(flatbuffers::Verifier &verifier) const { in Verify()
251 ArrayTableT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const;
252 void UnPackTo(ArrayTableT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const;
253 …static flatbuffers::Offset<ArrayTable> Pack(flatbuffers::FlatBufferBuilder &_fbb, const ArrayTable…
258 flatbuffers::FlatBufferBuilder &fbb_;
259 flatbuffers::uoffset_t start_;
263 explicit ArrayTableBuilder(flatbuffers::FlatBufferBuilder &_fbb) in ArrayTableBuilder()
268 flatbuffers::Offset<ArrayTable> Finish() { in Finish()
270 auto o = flatbuffers::Offset<ArrayTable>(end); in Finish()
275 inline flatbuffers::Offset<ArrayTable> CreateArrayTable(
276 flatbuffers::FlatBufferBuilder &_fbb,
283 flatbuffers::Offset<ArrayTable> CreateArrayTable(flatbuffers::FlatBufferBuilder &_fbb, const ArrayT…
285 inline ArrayTableT *ArrayTable::UnPack(const flatbuffers::resolver_function_t *_resolver) const { in UnPack()
286flatbuffers::unique_ptr<MyGame::Example::ArrayTableT> _o = flatbuffers::unique_ptr<MyGame::Example… in UnPack()
291 inline void ArrayTable::UnPackTo(ArrayTableT *_o, const flatbuffers::resolver_function_t *_resolver… in UnPackTo()
294 …{ auto _e = a(); if (_e) _o->a = flatbuffers::unique_ptr<MyGame::Example::ArrayStruct>(new MyGame:… in UnPackTo()
297 inline flatbuffers::Offset<ArrayTable> ArrayTable::Pack(flatbuffers::FlatBufferBuilder &_fbb, const… in Pack()
301 inline flatbuffers::Offset<ArrayTable> CreateArrayTable(flatbuffers::FlatBufferBuilder &_fbb, const… in CreateArrayTable()
304 …struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; const ArrayTableT* __o; const flatbuff… in CreateArrayTable()
311 inline const flatbuffers::TypeTable *TestEnumTypeTable() { in TestEnumTypeTable()
312 static const flatbuffers::TypeCode type_codes[] = { in TestEnumTypeTable()
313 { flatbuffers::ET_CHAR, 0, 0 }, in TestEnumTypeTable()
314 { flatbuffers::ET_CHAR, 0, 0 }, in TestEnumTypeTable()
315 { flatbuffers::ET_CHAR, 0, 0 } in TestEnumTypeTable()
317 static const flatbuffers::TypeFunction type_refs[] = { in TestEnumTypeTable()
325 static const flatbuffers::TypeTable tt = { in TestEnumTypeTable()
326 flatbuffers::ST_ENUM, 3, type_codes, type_refs, nullptr, names in TestEnumTypeTable()
331 inline const flatbuffers::TypeTable *NestedStructTypeTable() { in NestedStructTypeTable()
332 static const flatbuffers::TypeCode type_codes[] = { in NestedStructTypeTable()
333 { flatbuffers::ET_SEQUENCE, 0, -1 }, in NestedStructTypeTable()
334 { flatbuffers::ET_CHAR, 0, 0 }, in NestedStructTypeTable()
335 { flatbuffers::ET_SEQUENCE, 0, 0 }, in NestedStructTypeTable()
336 { flatbuffers::ET_SEQUENCE, 0, -1 } in NestedStructTypeTable()
338 static const flatbuffers::TypeFunction type_refs[] = { in NestedStructTypeTable()
348 static const flatbuffers::TypeTable tt = { in NestedStructTypeTable()
349 flatbuffers::ST_STRUCT, 4, type_codes, type_refs, values, names in NestedStructTypeTable()
354 inline const flatbuffers::TypeTable *ArrayStructTypeTable() { in ArrayStructTypeTable()
355 static const flatbuffers::TypeCode type_codes[] = { in ArrayStructTypeTable()
356 { flatbuffers::ET_FLOAT, 0, -1 }, in ArrayStructTypeTable()
357 { flatbuffers::ET_SEQUENCE, 0, -1 }, in ArrayStructTypeTable()
358 { flatbuffers::ET_CHAR, 0, -1 }, in ArrayStructTypeTable()
359 { flatbuffers::ET_SEQUENCE, 0, 0 }, in ArrayStructTypeTable()
360 { flatbuffers::ET_INT, 0, -1 }, in ArrayStructTypeTable()
361 { flatbuffers::ET_SEQUENCE, 0, -1 } in ArrayStructTypeTable()
363 static const flatbuffers::TypeFunction type_refs[] = { in ArrayStructTypeTable()
375 static const flatbuffers::TypeTable tt = { in ArrayStructTypeTable()
376 flatbuffers::ST_STRUCT, 6, type_codes, type_refs, values, names in ArrayStructTypeTable()
381 inline const flatbuffers::TypeTable *ArrayTableTypeTable() { in ArrayTableTypeTable()
382 static const flatbuffers::TypeCode type_codes[] = { in ArrayTableTypeTable()
383 { flatbuffers::ET_SEQUENCE, 0, 0 } in ArrayTableTypeTable()
385 static const flatbuffers::TypeFunction type_refs[] = { in ArrayTableTypeTable()
391 static const flatbuffers::TypeTable tt = { in ArrayTableTypeTable()
392 flatbuffers::ST_TABLE, 1, type_codes, type_refs, nullptr, names in ArrayTableTypeTable()
398 return flatbuffers::GetRoot<MyGame::Example::ArrayTable>(buf); in GetArrayTable()
402 return flatbuffers::GetSizePrefixedRoot<MyGame::Example::ArrayTable>(buf); in GetSizePrefixedArrayTable()
406 return flatbuffers::GetMutableRoot<ArrayTable>(buf); in GetMutableArrayTable()
414 return flatbuffers::BufferHasIdentifier( in ArrayTableBufferHasIdentifier()
419 flatbuffers::Verifier &verifier) { in VerifyArrayTableBuffer()
424 flatbuffers::Verifier &verifier) { in VerifySizePrefixedArrayTableBuffer()
433 flatbuffers::FlatBufferBuilder &fbb, in FinishArrayTableBuffer()
434 flatbuffers::Offset<MyGame::Example::ArrayTable> root) { in FinishArrayTableBuffer()
439 flatbuffers::FlatBufferBuilder &fbb, in FinishSizePrefixedArrayTableBuffer()
440 flatbuffers::Offset<MyGame::Example::ArrayTable> root) { in FinishSizePrefixedArrayTableBuffer()
444 inline flatbuffers::unique_ptr<MyGame::Example::ArrayTableT> UnPackArrayTable(
446 const flatbuffers::resolver_function_t *res = nullptr) {
447 return flatbuffers::unique_ptr<MyGame::Example::ArrayTableT>(GetArrayTable(buf)->UnPack(res));
450 inline flatbuffers::unique_ptr<MyGame::Example::ArrayTableT> UnPackSizePrefixedArrayTable(
452 const flatbuffers::resolver_function_t *res = nullptr) {
453 …return flatbuffers::unique_ptr<MyGame::Example::ArrayTableT>(GetSizePrefixedArrayTable(buf)->UnPac…