diff options
author | Derek Bailey <derekbailey@google.com> | 2023-02-06 23:42:44 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-06 21:42:44 -0800 |
commit | 535ead8d8c93d5f7bd5c5c0707d7cb8e58afb34f (patch) | |
tree | 407e16ba37d61ba7d0c579c5e0f3350687693326 /include | |
parent | 85aee1f5c31c84ba40aef763ed08ff6418d33601 (diff) | |
download | flatbuffers-535ead8d8c93d5f7bd5c5c0707d7cb8e58afb34f.tar.gz flatbuffers-535ead8d8c93d5f7bd5c5c0707d7cb8e58afb34f.tar.bz2 flatbuffers-535ead8d8c93d5f7bd5c5c0707d7cb8e58afb34f.zip |
[Annotated Buffers] Improve efficiency (#7820)
* AnnotatedBinaryTextGen switch to ofstream instead of building giant string
* Add --annotate-sparse-vectors to reduce AFB size
Diffstat (limited to 'include')
-rw-r--r-- | include/flatbuffers/flatc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/flatbuffers/flatc.h b/include/flatbuffers/flatc.h index a8fa9508..e6227d64 100644 --- a/include/flatbuffers/flatc.h +++ b/include/flatbuffers/flatc.h @@ -49,6 +49,7 @@ struct FlatCOptions { size_t binary_files_from = std::numeric_limits<size_t>::max(); std::string conform_to_schema; std::string annotate_schema; + bool annotate_include_vector_contents = true; bool any_generator = false; bool print_make_rules = false; bool raw_binary = false; @@ -110,8 +111,7 @@ class FlatCompiler { void AnnotateBinaries(const uint8_t *binary_schema, uint64_t binary_schema_size, - const std::string &schema_filename, - const std::vector<std::string> &binary_files); + const FlatCOptions &options); void ValidateOptions(const FlatCOptions &options); |