• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Annotated Flatbuffer Binary
2//
3// Schema file: alignment_test.fbs
4// Binary file: alignment_test_after_fix.bin
5
6header:
7  +0x00 | 0C 00 00 00             | UOffset32  | 0x0000000C (12) Loc: 0x0C | offset to root table `SmallStructs`
8
9padding:
10  +0x04 | 00 00                   | uint8_t[2] | ..                        | padding
11
12vtable (SmallStructs):
13  +0x06 | 06 00                   | uint16_t   | 0x0006 (6)                | size of this vtable
14  +0x08 | 08 00                   | uint16_t   | 0x0008 (8)                | size of referring table
15  +0x0A | 04 00                   | VOffset16  | 0x0004 (4)                | offset to field `small_structs` (id: 0)
16
17root_table (SmallStructs):
18  +0x0C | 06 00 00 00             | SOffset32  | 0x00000006 (6) Loc: 0x06  | offset to vtable
19  +0x10 | 04 00 00 00             | UOffset32  | 0x00000004 (4) Loc: 0x14  | offset to field `small_structs` (vector)
20
21vector (SmallStructs.small_structs):
22  +0x14 | 03 00 00 00             | uint32_t   | 0x00000003 (3)            | length of vector (# items)
23  +0x18 | 02                      | uint8_t    | 0x02 (2)                  | struct field `[0].var_0` of 'JustSmallStruct' (UByte)
24  +0x19 | 01                      | uint8_t    | 0x01 (1)                  | struct field `[0].var_1` of 'JustSmallStruct' (UByte)
25  +0x1A | 03                      | uint8_t    | 0x03 (3)                  | struct field `[1].var_0` of 'JustSmallStruct' (UByte)
26  +0x1B | 01                      | uint8_t    | 0x01 (1)                  | struct field `[1].var_1` of 'JustSmallStruct' (UByte)
27  +0x1C | 04                      | uint8_t    | 0x04 (4)                  | struct field `[2].var_0` of 'JustSmallStruct' (UByte)
28  +0x1D | 01                      | uint8_t    | 0x01 (1)                  | struct field `[2].var_1` of 'JustSmallStruct' (UByte)
29
30padding:
31  +0x1E | 00 00                   | uint8_t[2] | ..                        | padding
32