1 // automatically generated by the FlatBuffers compiler, do not modify
2
3 #ifndef FLATBUFFERS_GENERATED_STRING_TESTING_H_
4 #define FLATBUFFERS_GENERATED_STRING_TESTING_H_
5
6 #include "flatbuffers/flatbuffers.h"
7
8 namespace testing {
9
10 struct TestTableString;
11 struct TestTableStringBuilder;
12
13 struct TestTableString FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
14 typedef TestTableStringBuilder Builder;
15 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE { VT_TEST_STRING = 4 };
test_stringFLATBUFFERS_FINAL_CLASS16 const flatbuffers::String* test_string() const {
17 return GetPointer<const flatbuffers::String*>(VT_TEST_STRING);
18 }
VerifyFLATBUFFERS_FINAL_CLASS19 bool Verify(flatbuffers::Verifier& verifier) const {
20 return VerifyTableStart(verifier) && VerifyOffset(verifier, VT_TEST_STRING) &&
21 verifier.VerifyString(test_string()) && verifier.EndTable();
22 }
23 };
24
25 struct TestTableStringBuilder {
26 typedef TestTableString Table;
27 flatbuffers::FlatBufferBuilder& fbb_;
28 flatbuffers::uoffset_t start_;
add_test_stringTestTableStringBuilder29 void add_test_string(flatbuffers::Offset<flatbuffers::String> test_string) {
30 fbb_.AddOffset(TestTableString::VT_TEST_STRING, test_string);
31 }
TestTableStringBuilderTestTableStringBuilder32 explicit TestTableStringBuilder(flatbuffers::FlatBufferBuilder& _fbb) : fbb_(_fbb) {
33 start_ = fbb_.StartTable();
34 }
35 TestTableStringBuilder& operator=(const TestTableStringBuilder&);
FinishTestTableStringBuilder36 flatbuffers::Offset<TestTableString> Finish() {
37 const auto end = fbb_.EndTable(start_);
38 auto o = flatbuffers::Offset<TestTableString>(end);
39 return o;
40 }
41 };
42
43 inline flatbuffers::Offset<TestTableString> CreateTestTableString(
44 flatbuffers::FlatBufferBuilder& _fbb, flatbuffers::Offset<flatbuffers::String> test_string = 0) {
45 TestTableStringBuilder builder_(_fbb);
46 builder_.add_test_string(test_string);
47 return builder_.Finish();
48 }
49
50 inline flatbuffers::Offset<TestTableString> CreateTestTableStringDirect(
51 flatbuffers::FlatBufferBuilder& _fbb, const char* test_string = nullptr) {
52 auto test_string__ = test_string ? _fbb.CreateString(test_string) : 0;
53 return testing::CreateTestTableString(_fbb, test_string__);
54 }
55
GetTestTableString(const void * buf)56 inline const testing::TestTableString* GetTestTableString(const void* buf) {
57 return flatbuffers::GetRoot<testing::TestTableString>(buf);
58 }
59
GetSizePrefixedTestTableString(const void * buf)60 inline const testing::TestTableString* GetSizePrefixedTestTableString(const void* buf) {
61 return flatbuffers::GetSizePrefixedRoot<testing::TestTableString>(buf);
62 }
63
VerifyTestTableStringBuffer(flatbuffers::Verifier & verifier)64 inline bool VerifyTestTableStringBuffer(flatbuffers::Verifier& verifier) {
65 return verifier.VerifyBuffer<testing::TestTableString>(nullptr);
66 }
67
VerifySizePrefixedTestTableStringBuffer(flatbuffers::Verifier & verifier)68 inline bool VerifySizePrefixedTestTableStringBuffer(flatbuffers::Verifier& verifier) {
69 return verifier.VerifySizePrefixedBuffer<testing::TestTableString>(nullptr);
70 }
71
TestTableStringExtension()72 inline const char* TestTableStringExtension() {
73 return "bfbs";
74 }
75
FinishTestTableStringBuffer(flatbuffers::FlatBufferBuilder & fbb,flatbuffers::Offset<testing::TestTableString> root)76 inline void FinishTestTableStringBuffer(
77 flatbuffers::FlatBufferBuilder& fbb, flatbuffers::Offset<testing::TestTableString> root) {
78 fbb.Finish(root);
79 }
80
FinishSizePrefixedTestTableStringBuffer(flatbuffers::FlatBufferBuilder & fbb,flatbuffers::Offset<testing::TestTableString> root)81 inline void FinishSizePrefixedTestTableStringBuffer(
82 flatbuffers::FlatBufferBuilder& fbb, flatbuffers::Offset<testing::TestTableString> root) {
83 fbb.FinishSizePrefixed(root);
84 }
85
86 } // namespace testing
87
88 #endif // FLATBUFFERS_GENERATED_STRING_TESTING_H_
89