1# automatically generated by the FlatBuffers compiler, do not modify 2 3# namespace: NamespaceA 4 5import flatbuffers 6 7class SecondTableInA(object): 8 __slots__ = ['_tab'] 9 10 @classmethod 11 def GetRootAsSecondTableInA(cls, buf, offset): 12 n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) 13 x = SecondTableInA() 14 x.Init(buf, n + offset) 15 return x 16 17 # SecondTableInA 18 def Init(self, buf, pos): 19 self._tab = flatbuffers.table.Table(buf, pos) 20 21 # SecondTableInA 22 def ReferToC(self): 23 o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4)) 24 if o != 0: 25 x = self._tab.Indirect(o + self._tab.Pos) 26 from .TableInC import TableInC 27 obj = TableInC() 28 obj.Init(self._tab.Bytes, x) 29 return obj 30 return None 31 32def SecondTableInAStart(builder): builder.StartObject(1) 33def SecondTableInAAddReferToC(builder, referToC): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(referToC), 0) 34def SecondTableInAEnd(builder): return builder.EndObject() 35