mirror of
https://github.com/google/flatbuffers.git
synced 2026-11-09 21:55:09 +00:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
30850e1d75 |
+1
-1
@@ -404,7 +404,7 @@ class CppGenerator : public BaseGenerator {
|
|||||||
code_ += "struct {{STRUCT_NAME}}BinarySchema {";
|
code_ += "struct {{STRUCT_NAME}}BinarySchema {";
|
||||||
code_ += " static const uint8_t *data() {";
|
code_ += " static const uint8_t *data() {";
|
||||||
code_ += " // Buffer containing the binary schema.";
|
code_ += " // Buffer containing the binary schema.";
|
||||||
code_ += " static const uint8_t bfbsData[" +
|
code_ += " alignas(uint64_t) static const uint8_t bfbsData[" +
|
||||||
NumToString(parser_.builder_.GetSize()) + "] = {";
|
NumToString(parser_.builder_.GetSize()) + "] = {";
|
||||||
code_ += binary_schema_hex_text;
|
code_ += binary_schema_hex_text;
|
||||||
code_ += " };";
|
code_ += " };";
|
||||||
|
|||||||
Reference in New Issue
Block a user