| 1 |
0x0 | 00 61 73 6d | version 13 (Component) |
| 2 |
| 0d 00 01 00 |
| 3 |
0x8 | 04 31 | [component 0] inline size |
| 4 |
0xa | 00 61 73 6d | version 13 (Component) |
| 5 |
| 0d 00 01 00 |
| 6 |
0x12 | 01 08 | [core module 0] inline size |
| 7 |
0x14 | 00 61 73 6d | version 1 (Module) |
| 8 |
| 01 00 00 00 |
| 9 |
0x1c | 0b 08 | component export section |
| 10 |
0x1e | 01 | 1 count |
| 11 |
0x1f | 00 01 65 00 | export ComponentExport { name: ComponentExportName("e"), kind: Module, index: 0, ty: None } |
| 12 |
| 11 00 00 |
| 13 |
0x26 | 00 13 | custom section |
| 14 |
0x28 | 0e 63 6f 6d | name: "component-name" |
| 15 |
| 70 6f 6e 65 |
| 16 |
| 6e 74 2d 6e |
| 17 |
| 61 6d 65 |
| 18 |
0x37 | 00 02 | component name |
| 19 |
0x39 | 01 63 | "c" |
| 20 |
0x3b | 04 35 | [component 1] inline size |
| 21 |
0x3d | 00 61 73 6d | version 13 (Component) |
| 22 |
| 0d 00 01 00 |
| 23 |
0x45 | 07 0d | component type section |
| 24 |
0x47 | 01 | 1 count |
| 25 |
0x48 | 41 02 00 50 | [type 0] Component([CoreType(Module([])), Import(ComponentImport { name: ComponentImportName("i"), ty: Module(0) })]) |
| 26 |
| 00 03 00 01 |
| 27 |
| 69 00 11 00 |
| 28 |
0x54 | 0a 06 | component import section |
| 29 |
0x56 | 01 | 1 count |
| 30 |
0x57 | 00 01 69 04 | [component 0] ComponentImport { name: ComponentImportName("i"), ty: Component(0) } |
| 31 |
| 00 |
| 32 |
0x5c | 00 14 | custom section |
| 33 |
0x5e | 0e 63 6f 6d | name: "component-name" |
| 34 |
| 70 6f 6e 65 |
| 35 |
| 6e 74 2d 6e |
| 36 |
| 61 6d 65 |
| 37 |
0x6d | 00 03 | component name |
| 38 |
0x6f | 02 63 32 | "c2" |
| 39 |
0x72 | 05 04 | component instance section |
| 40 |
0x74 | 01 | 1 count |
| 41 |
0x75 | 00 00 00 | [instance 0] Instantiate { component_index: 0, args: [] } |
| 42 |
0x78 | 06 07 | component alias section |
| 43 |
0x7a | 01 | 1 count |
| 44 |
0x7b | 00 11 00 00 | alias [module 0] InstanceExport { kind: Module, instance_index: 0, name: "e" } |
| 45 |
| 01 65 |
| 46 |
0x81 | 05 10 | component instance section |
| 47 |
0x83 | 02 | 2 count |
| 48 |
0x84 | 01 01 00 01 | [instance 1] FromExports([ComponentExport { name: ComponentExportName("e"), kind: Module, index: 0, ty: None }]) |
| 49 |
| 65 00 11 00 |
| 50 |
0x8c | 00 01 01 01 | [instance 2] Instantiate { component_index: 1, args: [ComponentInstantiationArg { name: "i", kind: Instance, index: 1 }] } |
| 51 |
| 69 05 01 |
| 52 |
0x93 | 00 29 | custom section |
| 53 |
0x95 | 0e 63 6f 6d | name: "component-name" |
| 54 |
| 70 6f 6e 65 |
| 55 |
| 6e 74 2d 6e |
| 56 |
| 61 6d 65 |
| 57 |
0xa4 | 01 06 00 11 | core module name section |
| 58 |
0xa8 | 01 | 1 count |
| 59 |
0xa9 | 00 01 6d | Naming { index: 0, name: "m" } |
| 60 |
0xac | 01 09 04 | component name section |
| 61 |
0xaf | 02 | 2 count |
| 62 |
0xb0 | 00 01 63 | Naming { index: 0, name: "c" } |
| 63 |
0xb3 | 01 02 63 32 | Naming { index: 1, name: "c2" } |
| 64 |
0xb7 | 01 05 05 | instance name section |
| 65 |
0xba | 01 | 1 count |
| 66 |
0xbb | 00 01 43 | Naming { index: 0, name: "C" } |