| 1 |
0x0 | 00 61 73 6d | version 1 (Module) |
| 2 |
| 01 00 00 00 |
| 3 |
0x8 | 01 17 | type section |
| 4 |
0xa | 05 | 5 count |
| 5 |
--- rec group 0 (implicit) --- |
| 6 |
0xb | 60 00 00 | [type 0] SubType { is_final: true, supertype_idx: None, composite_type: CompositeType { inner: Func(FuncType { params: [], results: [] }), shared: false } } |
| 7 |
--- rec group 1 (implicit) --- |
| 8 |
0xe | 60 00 01 7f | [type 1] SubType { is_final: true, supertype_idx: None, composite_type: CompositeType { inner: Func(FuncType { params: [], results: [I32] }), shared: false } } |
| 9 |
--- rec group 2 (implicit) --- |
| 10 |
0x12 | 60 01 7f 00 | [type 2] SubType { is_final: true, supertype_idx: None, composite_type: CompositeType { inner: Func(FuncType { params: [I32], results: [] }), shared: false } } |
| 11 |
--- rec group 3 (implicit) --- |
| 12 |
0x16 | 60 01 7f 01 | [type 3] SubType { is_final: true, supertype_idx: None, composite_type: CompositeType { inner: Func(FuncType { params: [I32], results: [I32] }), shared: false } } |
| 13 |
| 7f |
| 14 |
--- rec group 4 (implicit) --- |
| 15 |
0x1b | 60 01 7f 02 | [type 4] SubType { is_final: true, supertype_idx: None, composite_type: CompositeType { inner: Func(FuncType { params: [I32], results: [I32, I32] }), shared: false } } |
| 16 |
| 7f 7f |
| 17 |
0x21 | 03 02 | func section |
| 18 |
0x23 | 01 | 1 count |
| 19 |
0x24 | 00 | [func 0] type 0 |
| 20 |
0x25 | 0a 1c | code section |
| 21 |
0x27 | 01 | 1 count |
| 22 |
============== func 0 ==================== |
| 23 |
0x28 | 1a | size of function |
| 24 |
0x29 | 00 | 0 local blocks |
| 25 |
0x2a | 02 40 | block blockty:Empty |
| 26 |
0x2c | 0b | end |
| 27 |
0x2d | 02 7f | block blockty:Type(I32) |
| 28 |
0x2f | 0b | end |
| 29 |
0x30 | 02 02 | block blockty:FuncType(2) |
| 30 |
0x32 | 0b | end |
| 31 |
0x33 | 02 03 | block blockty:FuncType(3) |
| 32 |
0x35 | 0b | end |
| 33 |
0x36 | 02 04 | block blockty:FuncType(4) |
| 34 |
0x38 | 0b | end |
| 35 |
0x39 | 02 01 | block blockty:FuncType(1) |
| 36 |
0x3b | 0b | end |
| 37 |
0x3c | 02 01 | block blockty:FuncType(1) |
| 38 |
0x3e | 0b | end |
| 39 |
0x3f | 02 00 | block blockty:FuncType(0) |
| 40 |
0x41 | 0b | end |
| 41 |
0x42 | 0b | end |
| 42 |
0x43 | 00 12 | custom section |
| 43 |
0x45 | 04 6e 61 6d | name: "name" |
| 44 |
| 65 |
| 45 |
0x4a | 04 0b | type name section |
| 46 |
0x4c | 02 | 2 count |
| 47 |
0x4d | 00 05 65 6d | Naming { index: 0, name: "empty" } |
| 48 |
| 70 74 79 |
| 49 |
0x54 | 01 01 74 | Naming { index: 1, name: "t" } |