- `--gen-mutable` : Generate additional non-const accessors for mutating
FlatBuffers in-place.
+- `--gen-onefile` : Generate single output file (useful for C#)
+
- `--raw-binary` : Allow binaries without a file_indentifier to be read.
This may crash flatc given a mismatched schema.
opts.mutable_buffer = true;
} else if(arg == "--gen-includes") {
opts.include_dependence_headers = true;
- }else if (arg == "--gen-onefile") {
+ } else if (arg == "--gen-onefile") {
opts.one_file = true;
- }else if (arg == "--raw-binary") {
+ } else if (arg == "--raw-binary") {
raw_binary = true;
} else if(arg == "--") { // Separator between text and binary inputs.
binary_files_from = filenames.size();
std::string enumcode;
GenEnum(lang, **it, &enumcode);
if (opts.one_file) {
- one_file_code = enumcode;
+ one_file_code += enumcode;
}
else {
if (!SaveClass(lang, parser, (**it).name, enumcode, path, false, false))