Home | History | Annotate | Download | only in namespace_test
      1 // automatically generated by the FlatBuffers compiler, do not modify
      2 
      3 include "flatbuffers.lobster"
      4 
      5 namespace NamespaceA_NamespaceB
      6 
      7 enum + 
      8     EnumInNestedNS_A = 0,
      9     EnumInNestedNS_B = 1,
     10     EnumInNestedNS_C = 2
     11 
     12 struct TableInNestedNS
     13 
     14 struct StructInNestedNS
     15 
     16 struct TableInNestedNS : flatbuffers_handle
     17     def foo():
     18         buf_.flatbuffers_field_int32(pos_, 4, 0)
     19 
     20 def GetRootAsTableInNestedNS(buf:string): TableInNestedNS { buf, buf.flatbuffers_indirect(0) }
     21 
     22 def TableInNestedNSStart(b_:flatbuffers_builder):
     23     b_.StartObject(1)
     24 def TableInNestedNSAddFoo(b_:flatbuffers_builder, foo:int):
     25     b_.PrependInt32Slot(0, foo, 0)
     26 def TableInNestedNSEnd(b_:flatbuffers_builder):
     27     b_.EndObject()
     28 
     29 struct StructInNestedNS : flatbuffers_handle
     30     def a():
     31         buf_.read_int32_le(pos_ + 0)
     32     def b():
     33         buf_.read_int32_le(pos_ + 4)
     34 
     35 def 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