mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-03 12:21:23 +00:00
* Add codegen test for namespaced unions * [Rust] Handle cross-namespace union use * [Rust] Test namespace handling * [Rust] Drop trailing whitespace in codegen * [Rust] Set flags in generate_code.bat to match .sh * [C#] Add additional namespace test file
13 lines
378 B
Python
13 lines
378 B
Python
# 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
|