forked from BigfootDev/flatbuffers
* fix(flatbuffers): use manual impl Default for struct object types * fix: handle bool and float zero literals in struct object Default impl * fix: regenerate all test bindings with generate_code.py * fix: data type check on swift build * fix: test large array on struct and enum
36 lines
476 B
Plaintext
36 lines
476 B
Plaintext
namespace MyGame.Example;
|
|
|
|
enum TestEnum : byte { A, B, C }
|
|
|
|
struct NestedStruct{
|
|
a:[int:2];
|
|
b:TestEnum;
|
|
c:[TestEnum:2];
|
|
d:[int64:2];
|
|
}
|
|
|
|
struct ArrayStruct{
|
|
a:float;
|
|
b:[int:0xF];
|
|
c:byte;
|
|
d:[NestedStruct:2];
|
|
e:int32;
|
|
f:[int64:2];
|
|
}
|
|
|
|
struct LargeArrayStruct {
|
|
d:[ubyte:64];
|
|
e:[float:64];
|
|
f:[bool:64];
|
|
g:[NestedStruct:64];
|
|
h:[TestEnum:64];
|
|
}
|
|
|
|
table ArrayTable{
|
|
a:ArrayStruct;
|
|
}
|
|
|
|
root_type ArrayTable;
|
|
file_identifier "ARRT";
|
|
file_extension "mon";
|