mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-29 17:42:01 +00:00
Add support for fixed-size arrays (#5313)
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
0d2cebccfe
commit
e635141d5b
24
tests/arrays_test.fbs
Normal file
24
tests/arrays_test.fbs
Normal 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";
|
||||
Reference in New Issue
Block a user