1// automatically generated by the FlatBuffers compiler, do not modify 2 3include "flatbuffers.lobster" 4 5namespace NamespaceA_NamespaceB 6 7enum + 8 EnumInNestedNS_A = 0, 9 EnumInNestedNS_B = 1, 10 EnumInNestedNS_C = 2 11 12struct TableInNestedNS 13 14struct StructInNestedNS 15 16struct TableInNestedNS : flatbuffers_handle 17 def foo(): 18 buf_.flatbuffers_field_int32(pos_, 4, 0) 19 20def GetRootAsTableInNestedNS(buf:string): TableInNestedNS { buf, buf.flatbuffers_indirect(0) } 21 22def TableInNestedNSStart(b_:flatbuffers_builder): 23 b_.StartObject(1) 24def TableInNestedNSAddFoo(b_:flatbuffers_builder, foo:int): 25 b_.PrependInt32Slot(0, foo, 0) 26def TableInNestedNSEnd(b_:flatbuffers_builder): 27 b_.EndObject() 28 29struct StructInNestedNS : flatbuffers_handle 30 def a(): 31 buf_.read_int32_le(pos_ + 0) 32 def b(): 33 buf_.read_int32_le(pos_ + 4) 34 35def CreateStructInNestedNS(b_:flatbuffers_builder, a:int, b:int): 36 b_.Prep(4, 8) 37 b_.PrependInt32(b) 38 b_.PrependInt32(a) 39 return b_.Offset() 40 41