Lines Matching full:flatbuffers

1 // automatically generated by the FlatBuffers compiler, do not modify
7 #include "flatbuffers/flatbuffers.h"
29 inline const flatbuffers::TypeTable *Vec3TypeTable();
31 inline const flatbuffers::TypeTable *MonsterTypeTable();
33 inline const flatbuffers::TypeTable *WeaponTypeTable();
63 if (flatbuffers::IsOutRange(e, Color_Red, Color_Blue)) return ""; in EnumNameColor()
93 if (flatbuffers::IsOutRange(e, Equipment_NONE, Equipment_Weapon)) return ""; in EnumNameEquipment()
135 …static void *UnPack(const void *obj, Equipment type, const flatbuffers::resolver_function_t *resol…
136flatbuffers::Offset<void> Pack(flatbuffers::FlatBufferBuilder &_fbb, const flatbuffers::rehasher_f…
169 bool VerifyEquipment(flatbuffers::Verifier &verifier, const void *obj, Equipment type);
170 …rifyEquipmentVector(flatbuffers::Verifier &verifier, const flatbuffers::Vector<flatbuffers::Offset…
179 static const flatbuffers::TypeTable *MiniReflectTypeTable() {
186 : x_(flatbuffers::EndianScalar(_x)),
187 y_(flatbuffers::EndianScalar(_y)),
188 z_(flatbuffers::EndianScalar(_z)) {
191 return flatbuffers::EndianScalar(x_);
194 flatbuffers::WriteScalar(&x_, _x);
197 return flatbuffers::EndianScalar(y_);
200 flatbuffers::WriteScalar(&y_, _y);
203 return flatbuffers::EndianScalar(z_);
206 flatbuffers::WriteScalar(&z_, _z);
223 struct MonsterT : public flatbuffers::NativeTable {
225 flatbuffers::unique_ptr<MyGame::Sample::Vec3> pos;
231 std::vector<flatbuffers::unique_ptr<MyGame::Sample::WeaponT>> weapons;
259 struct Monster FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
262 static const flatbuffers::TypeTable *MiniReflectTypeTable() {
295 const flatbuffers::String *name() const {
296 return GetPointer<const flatbuffers::String *>(VT_NAME);
298 flatbuffers::String *mutable_name() {
299 return GetPointer<flatbuffers::String *>(VT_NAME);
301 const flatbuffers::Vector<uint8_t> *inventory() const {
302 return GetPointer<const flatbuffers::Vector<uint8_t> *>(VT_INVENTORY);
304 flatbuffers::Vector<uint8_t> *mutable_inventory() {
305 return GetPointer<flatbuffers::Vector<uint8_t> *>(VT_INVENTORY);
313 const flatbuffers::Vector<flatbuffers::Offset<MyGame::Sample::Weapon>> *weapons() const {
314 …return GetPointer<const flatbuffers::Vector<flatbuffers::Offset<MyGame::Sample::Weapon>> *>(VT_WEA…
316 flatbuffers::Vector<flatbuffers::Offset<MyGame::Sample::Weapon>> *mutable_weapons() {
317 … return GetPointer<flatbuffers::Vector<flatbuffers::Offset<MyGame::Sample::Weapon>> *>(VT_WEAPONS);
332 const flatbuffers::Vector<const MyGame::Sample::Vec3 *> *path() const {
333 return GetPointer<const flatbuffers::Vector<const MyGame::Sample::Vec3 *> *>(VT_PATH);
335 flatbuffers::Vector<const MyGame::Sample::Vec3 *> *mutable_path() {
336 return GetPointer<flatbuffers::Vector<const MyGame::Sample::Vec3 *> *>(VT_PATH);
338 bool Verify(flatbuffers::Verifier &verifier) const {
358 MonsterT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const;
359 void UnPackTo(MonsterT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const;
360 …static flatbuffers::Offset<Monster> Pack(flatbuffers::FlatBufferBuilder &_fbb, const MonsterT* _o,…
369 flatbuffers::FlatBufferBuilder &fbb_;
370 flatbuffers::uoffset_t start_;
380 void add_name(flatbuffers::Offset<flatbuffers::String> name) {
383 void add_inventory(flatbuffers::Offset<flatbuffers::Vector<uint8_t>> inventory) {
389 …void add_weapons(flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<MyGame::Sample::Weapo…
395 void add_equipped(flatbuffers::Offset<void> equipped) {
398 void add_path(flatbuffers::Offset<flatbuffers::Vector<const MyGame::Sample::Vec3 *>> path) {
401 explicit MonsterBuilder(flatbuffers::FlatBufferBuilder &_fbb)
406 flatbuffers::Offset<Monster> Finish() {
408 auto o = flatbuffers::Offset<Monster>(end);
413 inline flatbuffers::Offset<Monster> CreateMonster(
414 flatbuffers::FlatBufferBuilder &_fbb,
418 flatbuffers::Offset<flatbuffers::String> name = 0,
419 flatbuffers::Offset<flatbuffers::Vector<uint8_t>> inventory = 0,
421flatbuffers::Offset<flatbuffers::Vector<flatbuffers::Offset<MyGame::Sample::Weapon>>> weapons = 0,
423 flatbuffers::Offset<void> equipped = 0,
424 flatbuffers::Offset<flatbuffers::Vector<const MyGame::Sample::Vec3 *>> path = 0) {
439 inline flatbuffers::Offset<Monster> CreateMonsterDirect(
440 flatbuffers::FlatBufferBuilder &_fbb,
447 const std::vector<flatbuffers::Offset<MyGame::Sample::Weapon>> *weapons = nullptr,
449 flatbuffers::Offset<void> equipped = 0,
453 …auto weapons__ = weapons ? _fbb.CreateVector<flatbuffers::Offset<MyGame::Sample::Weapon>>(*weapons…
469 flatbuffers::Offset<Monster> CreateMonster(flatbuffers::FlatBufferBuilder &_fbb, const MonsterT *_o…
471 struct WeaponT : public flatbuffers::NativeTable {
491 struct Weapon FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
494 static const flatbuffers::TypeTable *MiniReflectTypeTable() {
501 const flatbuffers::String *name() const {
502 return GetPointer<const flatbuffers::String *>(VT_NAME);
504 flatbuffers::String *mutable_name() {
505 return GetPointer<flatbuffers::String *>(VT_NAME);
513 bool Verify(flatbuffers::Verifier &verifier) const {
520 WeaponT *UnPack(const flatbuffers::resolver_function_t *_resolver = nullptr) const;
521 void UnPackTo(WeaponT *_o, const flatbuffers::resolver_function_t *_resolver = nullptr) const;
522 …static flatbuffers::Offset<Weapon> Pack(flatbuffers::FlatBufferBuilder &_fbb, const WeaponT* _o, c…
527 flatbuffers::FlatBufferBuilder &fbb_;
528 flatbuffers::uoffset_t start_;
529 void add_name(flatbuffers::Offset<flatbuffers::String> name) {
535 explicit WeaponBuilder(flatbuffers::FlatBufferBuilder &_fbb)
540 flatbuffers::Offset<Weapon> Finish() {
542 auto o = flatbuffers::Offset<Weapon>(end);
547 inline flatbuffers::Offset<Weapon> CreateWeapon(
548 flatbuffers::FlatBufferBuilder &_fbb,
549 flatbuffers::Offset<flatbuffers::String> name = 0,
557 inline flatbuffers::Offset<Weapon> CreateWeaponDirect(
558 flatbuffers::FlatBufferBuilder &_fbb,
568 flatbuffers::Offset<Weapon> CreateWeapon(flatbuffers::FlatBufferBuilder &_fbb, const WeaponT *_o, c…
570 inline MonsterT *Monster::UnPack(const flatbuffers::resolver_function_t *_resolver) const {
571flatbuffers::unique_ptr<MyGame::Sample::MonsterT> _o = flatbuffers::unique_ptr<MyGame::Sample::Mon…
576 inline void Monster::UnPackTo(MonsterT *_o, const flatbuffers::resolver_function_t *_resolver) cons…
579 …{ auto _e = pos(); if (_e) _o->pos = flatbuffers::unique_ptr<MyGame::Sample::Vec3>(new MyGame::Sam…
583 …{ auto _e = inventory(); if (_e) { _o->inventory.resize(_e->size()); for (flatbuffers::uoffset_t _…
585 …>weapons.resize(_e->size()); for (flatbuffers::uoffset_t _i = 0; _i < _e->size(); _i++) { _o->weap…
588 …{ auto _e = path(); if (_e) { _o->path.resize(_e->size()); for (flatbuffers::uoffset_t _i = 0; _i …
591 inline flatbuffers::Offset<Monster> Monster::Pack(flatbuffers::FlatBufferBuilder &_fbb, const Monst…
595 inline flatbuffers::Offset<Monster> CreateMonster(flatbuffers::FlatBufferBuilder &_fbb, const Monst…
598 …struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; const MonsterT* __o; const flatbuffers
605 …auto _weapons = _o->weapons.size() ? _fbb.CreateVector<flatbuffers::Offset<MyGame::Sample::Weapon>…
623 inline WeaponT *Weapon::UnPack(const flatbuffers::resolver_function_t *_resolver) const {
624flatbuffers::unique_ptr<MyGame::Sample::WeaponT> _o = flatbuffers::unique_ptr<MyGame::Sample::Weap…
629 inline void Weapon::UnPackTo(WeaponT *_o, const flatbuffers::resolver_function_t *_resolver) const {
636 inline flatbuffers::Offset<Weapon> Weapon::Pack(flatbuffers::FlatBufferBuilder &_fbb, const WeaponT…
640 inline flatbuffers::Offset<Weapon> CreateWeapon(flatbuffers::FlatBufferBuilder &_fbb, const WeaponT…
643 …struct _VectorArgs { flatbuffers::FlatBufferBuilder *__fbb; const WeaponT* __o; const flatbuffers:…
652 inline bool VerifyEquipment(flatbuffers::Verifier &verifier, const void *obj, Equipment type) {
665 …rifyEquipmentVector(flatbuffers::Verifier &verifier, const flatbuffers::Vector<flatbuffers::Offset…
668 for (flatbuffers::uoffset_t i = 0; i < values->size(); ++i) {
677 inline void *EquipmentUnion::UnPack(const void *obj, Equipment type, const flatbuffers::resolver_fu…
687 inline flatbuffers::Offset<void> EquipmentUnion::Pack(flatbuffers::FlatBufferBuilder &_fbb, const f…
721 inline const flatbuffers::TypeTable *ColorTypeTable() {
722 static const flatbuffers::TypeCode type_codes[] = {
723 { flatbuffers::ET_CHAR, 0, 0 },
724 { flatbuffers::ET_CHAR, 0, 0 },
725 { flatbuffers::ET_CHAR, 0, 0 }
727 static const flatbuffers::TypeFunction type_refs[] = {
735 static const flatbuffers::TypeTable tt = {
736 flatbuffers::ST_ENUM, 3, type_codes, type_refs, nullptr, names
741 inline const flatbuffers::TypeTable *EquipmentTypeTable() {
742 static const flatbuffers::TypeCode type_codes[] = {
743 { flatbuffers::ET_SEQUENCE, 0, -1 },
744 { flatbuffers::ET_SEQUENCE, 0, 0 }
746 static const flatbuffers::TypeFunction type_refs[] = {
753 static const flatbuffers::TypeTable tt = {
754 flatbuffers::ST_UNION, 2, type_codes, type_refs, nullptr, names
759 inline const flatbuffers::TypeTable *Vec3TypeTable() {
760 static const flatbuffers::TypeCode type_codes[] = {
761 { flatbuffers::ET_FLOAT, 0, -1 },
762 { flatbuffers::ET_FLOAT, 0, -1 },
763 { flatbuffers::ET_FLOAT, 0, -1 }
771 static const flatbuffers::TypeTable tt = {
772 flatbuffers::ST_STRUCT, 3, type_codes, nullptr, values, names
777 inline const flatbuffers::TypeTable *MonsterTypeTable() {
778 static const flatbuffers::TypeCode type_codes[] = {
779 { flatbuffers::ET_SEQUENCE, 0, 0 },
780 { flatbuffers::ET_SHORT, 0, -1 },
781 { flatbuffers::ET_SHORT, 0, -1 },
782 { flatbuffers::ET_STRING, 0, -1 },
783 { flatbuffers::ET_BOOL, 0, -1 },
784 { flatbuffers::ET_UCHAR, 1, -1 },
785 { flatbuffers::ET_CHAR, 0, 1 },
786 { flatbuffers::ET_SEQUENCE, 1, 2 },
787 { flatbuffers::ET_UTYPE, 0, 3 },
788 { flatbuffers::ET_SEQUENCE, 0, 3 },
789 { flatbuffers::ET_SEQUENCE, 1, 0 }
791 static const flatbuffers::TypeFunction type_refs[] = {
810 static const flatbuffers::TypeTable tt = {
811 flatbuffers::ST_TABLE, 11, type_codes, type_refs, nullptr, names
816 inline const flatbuffers::TypeTable *WeaponTypeTable() {
817 static const flatbuffers::TypeCode type_codes[] = {
818 { flatbuffers::ET_STRING, 0, -1 },
819 { flatbuffers::ET_SHORT, 0, -1 }
825 static const flatbuffers::TypeTable tt = {
826 flatbuffers::ST_TABLE, 2, type_codes, nullptr, nullptr, names
832 return flatbuffers::GetRoot<MyGame::Sample::Monster>(buf);
836 return flatbuffers::GetSizePrefixedRoot<MyGame::Sample::Monster>(buf);
840 return flatbuffers::GetMutableRoot<Monster>(buf);
844 flatbuffers::Verifier &verifier) {
849 flatbuffers::Verifier &verifier) {
854 flatbuffers::FlatBufferBuilder &fbb,
855 flatbuffers::Offset<MyGame::Sample::Monster> root) {
860 flatbuffers::FlatBufferBuilder &fbb,
861 flatbuffers::Offset<MyGame::Sample::Monster> root) {
865 inline flatbuffers::unique_ptr<MyGame::Sample::MonsterT> UnPackMonster(
867 const flatbuffers::resolver_function_t *res = nullptr) {
868 return flatbuffers::unique_ptr<MyGame::Sample::MonsterT>(GetMonster(buf)->UnPack(res));
871 inline flatbuffers::unique_ptr<MyGame::Sample::MonsterT> UnPackSizePrefixedMonster(
873 const flatbuffers::resolver_function_t *res = nullptr) {
874 …return flatbuffers::unique_ptr<MyGame::Sample::MonsterT>(GetSizePrefixedMonster(buf)->UnPack(res));