blob: 59cceaa65ab43717c598f3cc3102bb60546fd231 [file] [log] [blame]
Austin Schuhe89fa2d2019-08-14 20:24:23 -07001# automatically generated by the FlatBuffers compiler, do not modify
2
3# namespace: NamespaceB
4
5import flatbuffers
6
7class StructInNestedNS(object):
8 __slots__ = ['_tab']
9
10 # StructInNestedNS
11 def Init(self, buf, pos):
12 self._tab = flatbuffers.table.Table(buf, pos)
13
14 # StructInNestedNS
15 def A(self): return self._tab.Get(flatbuffers.number_types.Int32Flags, self._tab.Pos + flatbuffers.number_types.UOffsetTFlags.py_type(0))
16 # StructInNestedNS
17 def B(self): return self._tab.Get(flatbuffers.number_types.Int32Flags, self._tab.Pos + flatbuffers.number_types.UOffsetTFlags.py_type(4))
18
19def CreateStructInNestedNS(builder, a, b):
20 builder.Prep(4, 8)
21 builder.PrependInt32(b)
22 builder.PrependInt32(a)
23 return builder.Offset()