| 1 |
0x0 | 00 61 73 6d | version 1 (Module) |
| 2 |
| 01 00 00 00 |
| 3 |
0x8 | 01 05 | type section |
| 4 |
0xa | 01 | 1 count |
| 5 |
--- rec group 0 (implicit) --- |
| 6 |
0xb | 60 01 7f 00 | [type 0] SubType { is_final: true, supertype_idx: None, composite_type: CompositeType { inner: Func(FuncType { params: [I32], results: [] }), shared: false } } |
| 7 |
0xf | 03 02 | func section |
| 8 |
0x11 | 01 | 1 count |
| 9 |
0x12 | 00 | [func 0] type 0 |
| 10 |
0x13 | 0a 06 | code section |
| 11 |
0x15 | 01 | 1 count |
| 12 |
============== func 0 ==================== |
| 13 |
0x16 | 04 | size of function |
| 14 |
0x17 | 01 | 1 local blocks |
| 15 |
0x18 | 01 7c | 1 locals of type F64 |
| 16 |
0x1a | 0b | end |
| 17 |
0x1b | 00 1c | custom section |
| 18 |
0x1d | 04 6e 61 6d | name: "name" |
| 19 |
| 65 |
| 20 |
0x22 | 00 04 | module name |
| 21 |
0x24 | 03 66 6f 6f | "foo" |
| 22 |
0x28 | 01 04 | function name section |
| 23 |
0x2a | 01 | 1 count |
| 24 |
0x2b | 00 01 66 | Naming { index: 0, name: "f" } |
| 25 |
0x2e | 02 09 | local section |
| 26 |
0x30 | 01 | 1 count |
| 27 |
0x31 | 00 | function 0 local name section |
| 28 |
0x32 | 02 | 2 count |
| 29 |
0x33 | 00 01 78 | Naming { index: 0, name: "x" } |
| 30 |
0x36 | 01 01 79 | Naming { index: 1, name: "y" } |