| 1 |
0x0 | 00 61 73 6d | version 13 (Component) |
| 2 |
| 0d 00 01 00 |
| 3 |
0x8 | 07 03 | component type section |
| 4 |
0xa | 01 | 1 count |
| 5 |
0xb | 41 00 | [type 0] Component([]) |
| 6 |
0xd | 0a 06 | component import section |
| 7 |
0xf | 01 | 1 count |
| 8 |
0x10 | 00 01 61 04 | [component 0] ComponentImport { name: ComponentImportName("a"), ty: Component(0) } |
| 9 |
| 00 |
| 10 |
0x15 | 07 05 | component type section |
| 11 |
0x17 | 01 | 1 count |
| 12 |
0x18 | 40 00 01 00 | [type 1] Func(ComponentFuncType { params: [], result: None }) |
| 13 |
0x1c | 0a 06 | component import section |
| 14 |
0x1e | 01 | 1 count |
| 15 |
0x1f | 00 01 66 01 | [func 0] ComponentImport { name: ComponentImportName("f"), ty: Func(1) } |
| 16 |
| 01 |
| 17 |
0x24 | 05 08 | component instance section |
| 18 |
0x26 | 01 | 1 count |
| 19 |
0x27 | 00 00 01 01 | [instance 0] Instantiate { component_index: 0, args: [ComponentInstantiationArg { name: "a", kind: Func, index: 0 }] } |
| 20 |
| 61 01 00 |
| 21 |
0x2e | 00 24 | custom section |
| 22 |
0x30 | 0e 63 6f 6d | name: "component-name" |
| 23 |
| 70 6f 6e 65 |
| 24 |
| 6e 74 2d 6e |
| 25 |
| 61 6d 65 |
| 26 |
0x3f | 01 05 01 | func name section |
| 27 |
0x42 | 01 | 1 count |
| 28 |
0x43 | 00 01 66 | Naming { index: 0, name: "f" } |
| 29 |
0x46 | 01 05 04 | component name section |
| 30 |
0x49 | 01 | 1 count |
| 31 |
0x4a | 00 01 63 | Naming { index: 0, name: "c" } |
| 32 |
0x4d | 01 05 05 | instance name section |
| 33 |
0x50 | 01 | 1 count |
| 34 |
0x51 | 00 01 61 | Naming { index: 0, name: "a" } |