diff options
author | svenk177 <50141814+svenk177@users.noreply.github.com> | 2019-06-18 00:15:13 +0200 |
---|---|---|
committer | Wouter van Oortmerssen <aardappel@gmail.com> | 2019-06-18 00:15:13 +0200 |
commit | e635141d5bc66f056c90bcc9da5fdd766610492f (patch) | |
tree | b69da4d3b4d2e6e592083a2c31c6d7f809666575 /reflection | |
parent | 0d2cebccfeffae9df998f3ac819bf17b7ec7a6d0 (diff) | |
download | flatbuffers-e635141d5bc66f056c90bcc9da5fdd766610492f.tar.gz flatbuffers-e635141d5bc66f056c90bcc9da5fdd766610492f.tar.bz2 flatbuffers-e635141d5bc66f056c90bcc9da5fdd766610492f.zip |
Add support for fixed-size arrays (#5313)
Diffstat (limited to 'reflection')
-rw-r--r-- | reflection/reflection.fbs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/reflection/reflection.fbs b/reflection/reflection.fbs index a344d7b8..8fed025f 100644 --- a/reflection/reflection.fbs +++ b/reflection/reflection.fbs @@ -23,15 +23,18 @@ enum BaseType : byte { String, Vector, Obj, // Used for tables & structs. - Union + Union, + Array } table Type { base_type:BaseType; - element:BaseType = None; // Only if base_type == Vector. + element:BaseType = None; // Only if base_type == Vector + // or base_type == Array. index:int = -1; // If base_type == Object, index into "objects" below. // If base_type == Union, UnionType, or integral derived // from an enum, index into "enums" below. + fixed_length:uint16 = 0; // Only if base_type == Array. } table KeyValue { |