| 1 | |
| 2 | |
| 3 | @@ -404,7 +404,7 @@
|
| 4 | code_ += "struct {{STRUCT_NAME}}BinarySchema {";
|
| 5 | code_ += " static const uint8_t *data() {";
|
| 6 | code_ += " // Buffer containing the binary schema.";
|
| 7 | - code_ += " static const uint8_t bfbsData[" +
|
| 8 | + code_ += " alignas(uint64_t) static const uint8_t bfbsData[" +
|
| 9 | NumToString(parser_.builder_.GetSize()) + "] = {";
|
| 10 | code_ += binary_schema_hex_text;
|
| 11 | code_ += " };";
|
| 12 | |
| 13 | |
| 14 | @@ -12,7 +12,7 @@
|
| 15 | struct MonsterBinarySchema {
|
| 16 | static const uint8_t *data() {
|
| 17 | // Buffer containing the binary schema.
|
| 18 | - static const uint8_t bfbsData[14520] = {
|
| 19 | + alignas(uint64_t) static const uint8_t bfbsData[14520] = {
|
| 20 | 0x20,0x00,0x00,0x00,0x42,0x46,0x42,0x53,0x00,0x00,0x00,0x00,0x14,0x00,0x20,0x00,0x04,0x00,0x08,0x00,
|
| 21 | 0x0C,0x00,0x10,0x00,0x14,0x00,0x18,0x00,0x00,0x00,0x1C,0x00,0x14,0x00,0x00,0x00,0x58,0x00,0x00,0x00,
|
| 22 | 0x34,0x00,0x00,0x00,0x24,0x00,0x00,0x00,0x18,0x00,0x00,0x00,0x70,0x0D,0x00,0x00,0x08,0x00,0x00,0x00,
|
| 23 | |
| 24 | |
| 25 | @@ -9,7 +9,7 @@
|
| 26 | struct RootTableBinarySchema {
|
| 27 | static const uint8_t *data() {
|
| 28 | // Buffer containing the binary schema.
|
| 29 | - static const uint8_t bfbsData[1308] = {
|
| 30 | + alignas(uint64_t) static const uint8_t bfbsData[1308] = {
|
| 31 | 0x1C,0x00,0x00,0x00,0x42,0x46,0x42,0x53,0x14,0x00,0x20,0x00,0x04,0x00,0x08,0x00,0x0C,0x00,0x10,0x00,
|
| 32 | 0x14,0x00,0x18,0x00,0x00,0x00,0x1C,0x00,0x14,0x00,0x00,0x00,0x34,0x00,0x00,0x00,0x2C,0x00,0x00,0x00,
|
| 33 | 0x20,0x00,0x00,0x00,0x14,0x00,0x00,0x00,0x54,0x00,0x00,0x00,0x08,0x00,0x00,0x00,0x2C,0x00,0x00,0x00,
|