mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 12:05:50 +00:00
78 lines
8.4 KiB
Plaintext
78 lines
8.4 KiB
Plaintext
// Annotated Flatbuffer Binary
|
|
//
|
|
// Schema file: annotated_binary.fbs
|
|
// Binary file: tests/invalid_table_field_offset.bin
|
|
|
|
header:
|
|
+0x00 | 44 00 00 00 | UOffset32 | 0x00000044 (68) Loc: +0x44 | offset to root table `AnnotatedBinary.Foo`
|
|
+0x04 | 41 4E 4E 4F | char[4] | ANNO | File Identifier
|
|
|
|
padding:
|
|
+0x08 | 00 00 | uint8_t[2] | .. | padding
|
|
|
|
vtable (AnnotatedBinary.Foo):
|
|
+0x0A | 3A 00 | uint16_t | 0x003A (58) | size of this vtable
|
|
+0x0C | 68 00 | uint16_t | 0x0068 (104) | ERROR: size of referring table. Longer than the binary.
|
|
+0x0E | 0C 00 | VOffset16 | 0x000C (12) | offset to field `counter` (id: 0)
|
|
+0x10 | 07 00 | VOffset16 | 0x0007 (7) | offset to field `healthy` (id: 1)
|
|
+0x12 | 00 00 | VOffset16 | 0x0000 (0) | offset to field `level` (id: 2) <defaults to 99> (Long)
|
|
+0x14 | 08 00 | VOffset16 | 0x0008 (8) | offset to field `meal` (id: 3)
|
|
+0x16 | 10 00 | VOffset16 | 0x0010 (16) | offset to field `bar` (id: 4)
|
|
+0x18 | 14 00 | VOffset16 | 0x0014 (20) | offset to field `home` (id: 5)
|
|
+0x1A | 30 00 | VOffset16 | 0x0030 (48) | offset to field `name` (id: 6)
|
|
+0x1C | 34 00 | VOffset16 | 0x0034 (52) | offset to field `bars` (id: 7)
|
|
+0x1E | 09 00 | VOffset16 | 0x0009 (9) | offset to field `bar_baz_type` (id: 8)
|
|
+0x20 | 38 00 | VOffset16 | 0x0038 (56) | offset to field `bar_baz` (id: 9)
|
|
+0x22 | 3C 00 | VOffset16 | 0x003C (60) | offset to field `accounts` (id: 10)
|
|
+0x24 | 40 00 | VOffset16 | 0x0040 (64) | offset to field `bob` (id: 11)
|
|
+0x26 | 44 00 | VOffset16 | 0x0044 (68) | offset to field `alice` (id: 12)
|
|
+0x28 | 00 00 | VOffset16 | 0x0000 (0) | offset to field `maybe_i32` (id: 13) <defaults to 0> (Int)
|
|
+0x2A | 00 00 | VOffset16 | 0x0000 (0) | offset to field `default_i32` (id: 14) <defaults to 42> (Int)
|
|
+0x2C | 48 00 | VOffset16 | 0x0048 (72) | offset to field `just_i32` (id: 15)
|
|
+0x2E | 4C 00 | VOffset16 | 0x004C (76) | offset to field `names` (id: 16)
|
|
+0x30 | 50 00 | VOffset16 | 0x0050 (80) | offset to field `points_of_interest` (id: 17)
|
|
+0x32 | 54 00 | VOffset16 | 0x0054 (84) | ERROR: offset to field `foobars_type` (id: 18). Invalid offset, points outside the binary.
|
|
+0x34 | 58 00 | VOffset16 | 0x0058 (88) | ERROR: offset to field `foobars` (id: 19). Invalid offset, points outside the binary.
|
|
+0x36 | 0A 00 | VOffset16 | 0x000A (10) | offset to field `measurement_type` (id: 20)
|
|
+0x38 | 5C 00 | VOffset16 | 0x005C (92) | ERROR: offset to field `measurement` (id: 21). Invalid offset, points outside the binary.
|
|
+0x3A | 0B 00 | VOffset16 | 0x000B (11) | offset to field `anything_type` (id: 22)
|
|
+0x3C | 60 00 | VOffset16 | 0x0060 (96) | ERROR: offset to field `anything` (id: 23). Invalid offset, points outside the binary.
|
|
+0x3E | 00 00 | VOffset16 | 0x0000 (0) | offset to field `temperature` (id: 24) <defaults to 98.600000> (Float)
|
|
+0x40 | 00 00 | VOffset16 | 0x0000 (0) | offset to field `teetotaler` (id: 25) <null> (Obj)
|
|
+0x42 | 64 00 | VOffset16 | 0x0064 (100) | ERROR: offset to field `charlie` (id: 26). Invalid offset, points outside the binary.
|
|
+0x3A | 0B 00 | VOffset16 | 0x000B (11) | offset to unknown field (id: 22)
|
|
+0x3C | 60 00 | VOffset16 | 0x0060 (96) | offset to unknown field (id: 23)
|
|
+0x3E | 00 00 | VOffset16 | 0x0000 (0) | offset to unknown field (id: 24)
|
|
+0x40 | 00 00 | VOffset16 | 0x0000 (0) | offset to unknown field (id: 25)
|
|
+0x42 | 64 00 | VOffset16 | 0x0064 (100) | offset to unknown field (id: 26)
|
|
|
|
root_table (AnnotatedBinary.Foo):
|
|
+0x44 | 3A 00 00 00 | SOffset32 | 0x0000003A (58) Loc: +0x0A | offset to vtable
|
|
+0x48 | 00 00 00 | uint8_t[3] | ... | padding
|
|
+0x4B | 01 | uint8_t | 0x01 (1) | table field `healthy` (Bool)
|
|
+0x4C | 02 | uint8_t | 0x02 (2) | table field `meal` (Byte)
|
|
+0x4D | 02 | UType8 | 0x02 (2) | table field `bar_baz_type` (UType)
|
|
+0x4E | 01 | UType8 | 0x01 (1) | table field `measurement_type` (UType)
|
|
+0x4F | 01 | UType8 | 0x01 (1) | table field `anything_type` (UType)
|
|
+0x50 | D2 04 00 00 | uint32_t | 0x000004D2 (1234) | table field `counter` (Int)
|
|
+0x54 | 28 02 00 00 | UOffset32 | 0x00000228 (552) Loc: +0x27C | ERROR: offset to field `bar`. Invalid offset, points outside the binary.
|
|
+0x58 | 01 00 00 00 | uint32_t | 0x00000001 (1) | struct field `AnnotatedBinary.Building.floors` (Int)
|
|
+0x5C | 02 00 00 00 | uint32_t | 0x00000002 (2) | struct field `AnnotatedBinary.Building.doors` (Int)
|
|
+0x60 | 0C 00 00 00 | uint32_t | 0x0000000C (12) | struct field `AnnotatedBinary.Building.windows` (Int)
|
|
+0x64 | 0A 00 00 00 | uint32_t | 0x0000000A (10) | array field `AnnotatedBinary.Dimension.values`[0] (Int)
|
|
+0x68 | 0C 00 00 00 | uint32_t | 0x0000000C (12) | array field `AnnotatedBinary.Dimension.values`[1] (Int)
|
|
+0x6C | 14 00 00 00 | uint32_t | 0x00000014 (20) | array field `AnnotatedBinary.Dimension.values`[2] (Int)
|
|
+0x70 | 01 | uint8_t | 0x01 (1) | struct field `AnnotatedBinary.Tolerance.width` (UByte)
|
|
+0x71 | 02 | uint8_t | 0x02 (2) | struct field `AnnotatedBinary.Tolerance.width` (UByte)
|
|
+0x72 | 03 | uint8_t | 0x03 (3) | struct field `AnnotatedBinary.Tolerance.width` (UByte)
|
|
+0x73 | 00 | uint8_t[1] | . | padding
|
|
+0x74 | C8 01 00 00 | UOffset32 | 0x000001C8 (456) Loc: +0x23C | ERROR: offset to field `name`. Invalid offset, points outside the binary.
|
|
+0x78 | 5C 01 00 00 | UOffset32 | 0x0000015C (348) Loc: +0x1D4 | ERROR: offset to field `bars`. Invalid offset, points outside the binary.
|
|
+0x7C | 50 01 00 00 | UOffset32 | 0x00000150 (336) Loc: +0x1CC | ERROR: offset to field `bar_baz`. Invalid offset, points outside the binary.
|
|
+0x80 | 34 01 00 00 | UOffset32 | 0x00000134 (308) Loc: +0x1B4 | ERROR: offset to field `accounts`. Invalid offset, points outside the binary.
|
|
+0x84 | 24 01 00 00 | UOffset32 | 0x00000124 (292) Loc: +0x1A8 | ERROR: offset to field `bob`. Invalid offset, points outside the binary.
|
|
+0x88 | 14 01 00 00 | UOffset32 | 0x00000114 (276) Loc: +0x19C | ERROR: offset to field `alice`. Invalid offset, points outside the binary.
|
|
+0x8C | 0D 00 00 00 | uint32_t | 0x0000000D (13) | table field `just_i32` (Int)
|
|
+0x90 | DC 00 00 00 | UOffset32 | 0x000000DC (220) Loc: +0x16C | ERROR: offset to field `names`. Invalid offset, points outside the binary.
|
|
+0x94 | A0 00 | ?uint8_t[2] | .. | ERROR: offset to field `points_of_interest`. Incomplete binary, expected to read 4 bytes.
|