Add support for fixed-size arrays (#5313)

This commit is contained in:
svenk177
2019-06-18 00:15:13 +02:00
committed by Wouter van Oortmerssen
parent 0d2cebccfe
commit e635141d5b
40 changed files with 2113 additions and 220 deletions

24
tests/arrays_test.fbs Normal file
View File

@@ -0,0 +1,24 @@
namespace MyGame.Example;
enum TestEnum : byte { A, B, C }
struct NestedStruct{
a:[int:2];
b:TestEnum;
c:[TestEnum:2];
}
struct ArrayStruct{
a:float;
b:[int:0xF];
c:byte;
d:[NestedStruct:2];
}
table ArrayTable{
a:ArrayStruct;
}
root_type ArrayTable;
file_identifier "ARRT";
file_extension "mon";