1 // automatically generated by the FlatBuffers compiler, do not modify
2
3 #ifndef FLATBUFFERS_GENERATED_INTEGER_TESTING_H_
4 #define FLATBUFFERS_GENERATED_INTEGER_TESTING_H_
5
6 #include "flatbuffers/flatbuffers.h"
7
8 namespace testing {
9
10 struct TestTableInteger;
11 struct TestTableIntegerBuilder;
12
13 struct TestTableInteger FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table {
14 typedef TestTableIntegerBuilder Builder;
15 enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE { VT_TEST_INT = 4 };
test_intFLATBUFFERS_FINAL_CLASS16 int32_t test_int() const {
17 return GetField<int32_t>(VT_TEST_INT, 0);
18 }
VerifyFLATBUFFERS_FINAL_CLASS19 bool Verify(flatbuffers::Verifier& verifier) const {
20 return VerifyTableStart(verifier) && VerifyField<int32_t>(verifier, VT_TEST_INT) && verifier.EndTable();
21 }
22 };
23
24 struct TestTableIntegerBuilder {
25 typedef TestTableInteger Table;
26 flatbuffers::FlatBufferBuilder& fbb_;
27 flatbuffers::uoffset_t start_;
add_test_intTestTableIntegerBuilder28 void add_test_int(int32_t test_int) {
29 fbb_.AddElement<int32_t>(TestTableInteger::VT_TEST_INT, test_int, 0);
30 }
TestTableIntegerBuilderTestTableIntegerBuilder31 explicit TestTableIntegerBuilder(flatbuffers::FlatBufferBuilder& _fbb) : fbb_(_fbb) {
32 start_ = fbb_.StartTable();
33 }
34 TestTableIntegerBuilder& operator=(const TestTableIntegerBuilder&);
FinishTestTableIntegerBuilder35 flatbuffers::Offset<TestTableInteger> Finish() {
36 const auto end = fbb_.EndTable(start_);
37 auto o = flatbuffers::Offset<TestTableInteger>(end);
38 return o;
39 }
40 };
41
42 inline flatbuffers::Offset<TestTableInteger> CreateTestTableInteger(
43 flatbuffers::FlatBufferBuilder& _fbb, int32_t test_int = 0) {
44 TestTableIntegerBuilder builder_(_fbb);
45 builder_.add_test_int(test_int);
46 return builder_.Finish();
47 }
48
GetTestTableInteger(const void * buf)49 inline const testing::TestTableInteger* GetTestTableInteger(const void* buf) {
50 return flatbuffers::GetRoot<testing::TestTableInteger>(buf);
51 }
52
GetSizePrefixedTestTableInteger(const void * buf)53 inline const testing::TestTableInteger* GetSizePrefixedTestTableInteger(const void* buf) {
54 return flatbuffers::GetSizePrefixedRoot<testing::TestTableInteger>(buf);
55 }
56
VerifyTestTableIntegerBuffer(flatbuffers::Verifier & verifier)57 inline bool VerifyTestTableIntegerBuffer(flatbuffers::Verifier& verifier) {
58 return verifier.VerifyBuffer<testing::TestTableInteger>(nullptr);
59 }
60
VerifySizePrefixedTestTableIntegerBuffer(flatbuffers::Verifier & verifier)61 inline bool VerifySizePrefixedTestTableIntegerBuffer(flatbuffers::Verifier& verifier) {
62 return verifier.VerifySizePrefixedBuffer<testing::TestTableInteger>(nullptr);
63 }
64
TestTableIntegerExtension()65 inline const char* TestTableIntegerExtension() {
66 return "bfbs";
67 }
68
FinishTestTableIntegerBuffer(flatbuffers::FlatBufferBuilder & fbb,flatbuffers::Offset<testing::TestTableInteger> root)69 inline void FinishTestTableIntegerBuffer(
70 flatbuffers::FlatBufferBuilder& fbb, flatbuffers::Offset<testing::TestTableInteger> root) {
71 fbb.Finish(root);
72 }
73
FinishSizePrefixedTestTableIntegerBuffer(flatbuffers::FlatBufferBuilder & fbb,flatbuffers::Offset<testing::TestTableInteger> root)74 inline void FinishSizePrefixedTestTableIntegerBuffer(
75 flatbuffers::FlatBufferBuilder& fbb, flatbuffers::Offset<testing::TestTableInteger> root) {
76 fbb.FinishSizePrefixed(root);
77 }
78
79 } // namespace testing
80
81 #endif // FLATBUFFERS_GENERATED_INTEGER_TESTING_H_
82