xref: /aosp_15_r20/external/flatbuffers/tests/namespace_test/NamespaceA/NamespaceB/UnionInNestedNS.py (revision 890232f25432b36107d06881e0a25aaa6b473652)
1# automatically generated by the FlatBuffers compiler, do not modify
2
3# namespace: NamespaceB
4
5class UnionInNestedNS(object):
6    NONE = 0
7    TableInNestedNS = 1
8
9def 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
16