diff options
author | Casper <casperneo@uchicago.edu> | 2021-04-27 10:10:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-27 10:10:59 -0400 |
commit | 16836ff95a7f112f66a8c5994a508e6bfec010c9 (patch) | |
tree | 9431fa06f6f778cf2e27c41b9021c1114f87fbf3 /reflection/reflection.fbs | |
parent | c87179e73ed568183f8bf94468f5703886e0e6fb (diff) | |
download | flatbuffers-16836ff95a7f112f66a8c5994a508e6bfec010c9.tar.gz flatbuffers-16836ff95a7f112f66a8c5994a508e6bfec010c9.tar.bz2 flatbuffers-16836ff95a7f112f66a8c5994a508e6bfec010c9.zip |
Add advance feature indicators to reflection (#6546)
* Add advance feature indicators to reflection
* deserialize too
* model advanced features as bitflags
* use uint64_t instead of AdvancedFeatures
* git clang format
* initialize advanced_features_
* remove whitespace
Co-authored-by: Casper Neo <cneo@google.com>
Diffstat (limited to 'reflection/reflection.fbs')
-rw-r--r-- | reflection/reflection.fbs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/reflection/reflection.fbs b/reflection/reflection.fbs index d9e2dc47..36230b20 100644 --- a/reflection/reflection.fbs +++ b/reflection/reflection.fbs @@ -102,6 +102,14 @@ table Service { documentation:[string]; } +// New schema language features that are not supported by old code generators. +enum AdvancedFeatures : ulong (bit_flags) { + AdvancedArrayFeatures, + AdvancedUnionFeatures, + OptionalScalars, + DefaultVectorsAndStrings, +} + table Schema { objects:[Object] (required); // Sorted. enums:[Enum] (required); // Sorted. @@ -109,6 +117,7 @@ table Schema { file_ext:string; root_table:Object; services:[Service]; // Sorted. + advanced_features:AdvancedFeatures; } root_type Schema; |