summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDerek Bailey <derekbailey@google.com>2023-02-06 23:42:44 -0600
committerGitHub <noreply@github.com>2023-02-06 21:42:44 -0800
commit535ead8d8c93d5f7bd5c5c0707d7cb8e58afb34f (patch)
tree407e16ba37d61ba7d0c579c5e0f3350687693326 /include
parent85aee1f5c31c84ba40aef763ed08ff6418d33601 (diff)
downloadflatbuffers-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.h4
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);