James Kuszmaul | 8e62b02 | 2022-03-22 09:33:25 -0700 | [diff] [blame^] | 1 | # automatically generated by the FlatBuffers compiler, do not modify |
2 | |||||
3 | # namespace: NamespaceB | ||||
4 | |||||
5 | class UnionInNestedNS(object): | ||||
6 | NONE = 0 | ||||
7 | TableInNestedNS = 1 | ||||
8 | |||||
9 | def UnionInNestedNSCreator(unionType, table): | ||||
10 | from flatbuffers.table import Table | ||||
11 | if not isinstance(table, Table): | ||||
12 | return None | ||||
13 | if unionType == UnionInNestedNS().TableInNestedNS: | ||||
14 | return TableInNestedNST.InitFromBuf(table.Bytes, table.Pos) | ||||
15 | return None |