// automatically generated by the FlatBuffers compiler, do not modify #ifndef FLATBUFFERS_GENERATED_CSLANGUAGEDATABINARY_FLATBUFFERS_H_ #define FLATBUFFERS_GENERATED_CSLANGUAGEDATABINARY_FLATBUFFERS_H_ #include "flatbuffers/flatbuffers.h" namespace flatbuffers { struct LanguageItem; struct LanguageSet; struct LanguageItem : private flatbuffers::Table { const flatbuffers::String *key() const { return GetPointer(4); } const flatbuffers::String *value() const { return GetPointer(6); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, 4 /* key */) && verifier.Verify(key()) && VerifyField(verifier, 6 /* value */) && verifier.Verify(value()) && verifier.EndTable(); } }; struct LanguageItemBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_key(flatbuffers::Offset key) { fbb_.AddOffset(4, key); } void add_value(flatbuffers::Offset value) { fbb_.AddOffset(6, value); } LanguageItemBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } LanguageItemBuilder &operator=(const LanguageItemBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 2)); return o; } }; inline flatbuffers::Offset CreateLanguageItem(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset key = 0, flatbuffers::Offset value = 0) { LanguageItemBuilder builder_(_fbb); builder_.add_value(value); builder_.add_key(key); return builder_.Finish(); } struct LanguageSet : private flatbuffers::Table { const flatbuffers::Vector> *languageItems() const { return GetPointer> *>(4); } bool Verify(flatbuffers::Verifier &verifier) const { return VerifyTableStart(verifier) && VerifyField(verifier, 4 /* languageItems */) && verifier.Verify(languageItems()) && verifier.VerifyVectorOfTables(languageItems()) && verifier.EndTable(); } }; struct LanguageSetBuilder { flatbuffers::FlatBufferBuilder &fbb_; flatbuffers::uoffset_t start_; void add_languageItems(flatbuffers::Offset>> languageItems) { fbb_.AddOffset(4, languageItems); } LanguageSetBuilder(flatbuffers::FlatBufferBuilder &_fbb) : fbb_(_fbb) { start_ = fbb_.StartTable(); } LanguageSetBuilder &operator=(const LanguageSetBuilder &); flatbuffers::Offset Finish() { auto o = flatbuffers::Offset(fbb_.EndTable(start_, 1)); return o; } }; inline flatbuffers::Offset CreateLanguageSet(flatbuffers::FlatBufferBuilder &_fbb, flatbuffers::Offset>> languageItems = 0) { LanguageSetBuilder builder_(_fbb); builder_.add_languageItems(languageItems); return builder_.Finish(); } inline const LanguageSet *GetLanguageSet(const void *buf) { return flatbuffers::GetRoot(buf); } inline bool VerifyLanguageSetBuffer(flatbuffers::Verifier &verifier) { return verifier.VerifyBuffer(); } inline void FinishLanguageSetBuffer(flatbuffers::FlatBufferBuilder &fbb, flatbuffers::Offset root) { fbb.Finish(root); } } // namespace flatbuffers #endif // FLATBUFFERS_GENERATED_CSLANGUAGEDATABINARY_FLATBUFFERS_H_