2018-07-24 02:03:11 +00:00
|
|
|
// automatically generated by the FlatBuffers compiler, do not modify
|
2019-05-22 18:48:10 +00:00
|
|
|
import flatbuffers
|
2018-07-24 02:03:11 +00:00
|
|
|
|
|
|
|
namespace NamespaceA
|
|
|
|
|
2019-05-22 18:48:10 +00:00
|
|
|
class TableInFirstNS
|
2018-07-24 02:03:11 +00:00
|
|
|
|
|
|
|
namespace NamespaceC
|
|
|
|
|
2019-05-22 18:48:10 +00:00
|
|
|
class TableInC
|
2018-07-24 02:03:11 +00:00
|
|
|
|
|
|
|
namespace NamespaceA
|
|
|
|
|
2019-05-22 18:48:10 +00:00
|
|
|
class SecondTableInA
|
2018-07-24 02:03:11 +00:00
|
|
|
|
2019-05-22 18:48:10 +00:00
|
|
|
class TableInFirstNS : flatbuffers_handle
|
2018-07-24 02:03:11 +00:00
|
|
|
def foo_table():
|
2019-05-22 18:48:10 +00:00
|
|
|
let o = buf_.flatbuffers_field_table(pos_, 4)
|
|
|
|
return if o: NamespaceA_NamespaceB_TableInNestedNS { buf_, o } else: nil
|
2018-07-24 02:03:11 +00:00
|
|
|
def foo_enum():
|
2019-05-22 22:28:16 +00:00
|
|
|
return EnumInNestedNS(buf_.flatbuffers_field_int8(pos_, 6, 0))
|
2018-07-24 02:03:11 +00:00
|
|
|
def foo_struct():
|
2019-05-22 18:48:10 +00:00
|
|
|
let o = buf_.flatbuffers_field_struct(pos_, 8)
|
|
|
|
return if o: NamespaceA_NamespaceB_StructInNestedNS { buf_, o } else: nil
|
2018-07-24 02:03:11 +00:00
|
|
|
|
2019-05-22 18:48:10 +00:00
|
|
|
def GetRootAsTableInFirstNS(buf:string): return TableInFirstNS { buf, buf.flatbuffers_indirect(0) }
|
2018-07-24 02:03:11 +00:00
|
|
|
|
|
|
|
def TableInFirstNSStart(b_:flatbuffers_builder):
|
|
|
|
b_.StartObject(3)
|
|
|
|
def TableInFirstNSAddFooTable(b_:flatbuffers_builder, foo_table:int):
|
|
|
|
b_.PrependUOffsetTRelativeSlot(0, foo_table, 0)
|
2019-05-22 22:28:16 +00:00
|
|
|
def TableInFirstNSAddFooEnum(b_:flatbuffers_builder, foo_enum:EnumInNestedNS):
|
2018-07-24 02:03:11 +00:00
|
|
|
b_.PrependInt8Slot(1, foo_enum, 0)
|
|
|
|
def TableInFirstNSAddFooStruct(b_:flatbuffers_builder, foo_struct:int):
|
|
|
|
b_.PrependStructSlot(2, foo_struct, 0)
|
|
|
|
def TableInFirstNSEnd(b_:flatbuffers_builder):
|
2019-05-22 18:48:10 +00:00
|
|
|
return b_.EndObject()
|
2018-07-24 02:03:11 +00:00
|
|
|
|
|
|
|
namespace NamespaceC
|
|
|
|
|
2019-05-22 18:48:10 +00:00
|
|
|
class TableInC : flatbuffers_handle
|
2018-07-24 02:03:11 +00:00
|
|
|
def refer_to_a1():
|
2019-05-22 18:48:10 +00:00
|
|
|
let o = buf_.flatbuffers_field_table(pos_, 4)
|
|
|
|
return if o: NamespaceA_TableInFirstNS { buf_, o } else: nil
|
2018-07-24 02:03:11 +00:00
|
|
|
def refer_to_a2():
|
2019-05-22 18:48:10 +00:00
|
|
|
let o = buf_.flatbuffers_field_table(pos_, 6)
|
|
|
|
return if o: NamespaceA_SecondTableInA { buf_, o } else: nil
|
2018-07-24 02:03:11 +00:00
|
|
|
|
2019-05-22 18:48:10 +00:00
|
|
|
def GetRootAsTableInC(buf:string): return TableInC { buf, buf.flatbuffers_indirect(0) }
|
2018-07-24 02:03:11 +00:00
|
|
|
|
|
|
|
def TableInCStart(b_:flatbuffers_builder):
|
|
|
|
b_.StartObject(2)
|
|
|
|
def TableInCAddReferToA1(b_:flatbuffers_builder, refer_to_a1:int):
|
|
|
|
b_.PrependUOffsetTRelativeSlot(0, refer_to_a1, 0)
|
|
|
|
def TableInCAddReferToA2(b_:flatbuffers_builder, refer_to_a2:int):
|
|
|
|
b_.PrependUOffsetTRelativeSlot(1, refer_to_a2, 0)
|
|
|
|
def TableInCEnd(b_:flatbuffers_builder):
|
2019-05-22 18:48:10 +00:00
|
|
|
return b_.EndObject()
|
2018-07-24 02:03:11 +00:00
|
|
|
|
|
|
|
namespace NamespaceA
|
|
|
|
|
2019-05-22 18:48:10 +00:00
|
|
|
class SecondTableInA : flatbuffers_handle
|
2018-07-24 02:03:11 +00:00
|
|
|
def refer_to_c():
|
2019-05-22 18:48:10 +00:00
|
|
|
let o = buf_.flatbuffers_field_table(pos_, 4)
|
|
|
|
return if o: NamespaceC_TableInC { buf_, o } else: nil
|
2018-07-24 02:03:11 +00:00
|
|
|
|
2019-05-22 18:48:10 +00:00
|
|
|
def GetRootAsSecondTableInA(buf:string): return SecondTableInA { buf, buf.flatbuffers_indirect(0) }
|
2018-07-24 02:03:11 +00:00
|
|
|
|
|
|
|
def SecondTableInAStart(b_:flatbuffers_builder):
|
|
|
|
b_.StartObject(1)
|
|
|
|
def SecondTableInAAddReferToC(b_:flatbuffers_builder, refer_to_c:int):
|
|
|
|
b_.PrependUOffsetTRelativeSlot(0, refer_to_c, 0)
|
|
|
|
def SecondTableInAEnd(b_:flatbuffers_builder):
|
2019-05-22 18:48:10 +00:00
|
|
|
return b_.EndObject()
|
2018-07-24 02:03:11 +00:00
|
|
|
|