flatbuffers/tests/namespace_test/NamespaceA/NamespaceB/UnionInNestedNS.py

13 lines
378 B
Python
Raw Normal View History

# automatically generated by the FlatBuffers compiler, do not modify
# namespace: NamespaceB
def UnionInNestedNSCreator(unionType, table):
from flatbuffers.table import Table
if not isinstance(table, Table):
return None
if unionType == UnionInNestedNS().TableInNestedNS:
return TableInNestedNST.InitFromBuf(table.Bytes, table.Pos)
return None