| 1 |
0x0 | 00 61 73 6d | version 13 (Component) |
| 2 |
| 0d 00 01 00 |
| 3 |
0x8 | 07 30 | component type section |
| 4 |
0xa | 01 | 1 count |
| 5 |
0xb | 42 09 00 50 | [type 0] Instance([CoreType(Module([])), Export { name: ComponentExportName("a"), ty: Module(0) }, Type(Func(ComponentFuncType { params: [], result: None })), Export { name: ComponentExportName("b"), ty: Func(0) }, Export { name: ComponentExportName("c"), ty: Value(Primitive(String)) }, Type(Instance([])), Export { name: ComponentExportName("d"), ty: Instance(1) }, Type(Component([])), Export { name: ComponentExportName("e"), ty: Component(2) }]) |
| 6 |
| 00 04 00 01 |
| 7 |
| 61 00 11 00 |
| 8 |
| 01 40 00 01 |
| 9 |
| 00 04 00 01 |
| 10 |
| 62 01 00 04 |
| 11 |
| 00 01 63 02 |
| 12 |
| 73 01 42 00 |
| 13 |
| 04 00 01 64 |
| 14 |
| 05 01 01 41 |
| 15 |
| 00 04 00 01 |
| 16 |
| 65 04 02 |
| 17 |
0x3a | 0a 06 | component import section |
| 18 |
0x3c | 01 | 1 count |
| 19 |
0x3d | 00 01 61 05 | [instance 0] ComponentImport { name: ComponentImportName("a"), ty: Instance(0) } |
| 20 |
| 00 |
| 21 |
0x42 | 04 59 | [component 0] inline size |
| 22 |
0x44 | 00 61 73 6d | version 13 (Component) |
| 23 |
| 0d 00 01 00 |
| 24 |
0x4c | 03 03 | core type section |
| 25 |
0x4e | 01 | 1 count |
| 26 |
0x4f | 50 00 | [core type 0] Module([]) |
| 27 |
0x51 | 0a 07 | component import section |
| 28 |
0x53 | 01 | 1 count |
| 29 |
0x54 | 00 01 61 00 | [module 0] ComponentImport { name: ComponentImportName("a"), ty: Module(0) } |
| 30 |
| 11 00 |
| 31 |
0x5a | 07 05 | component type section |
| 32 |
0x5c | 01 | 1 count |
| 33 |
0x5d | 40 00 01 00 | [type 0] Func(ComponentFuncType { params: [], result: None }) |
| 34 |
0x61 | 0a 0b | component import section |
| 35 |
0x63 | 02 | 2 count |
| 36 |
0x64 | 00 01 62 01 | [func 0] ComponentImport { name: ComponentImportName("b"), ty: Func(0) } |
| 37 |
| 00 |
| 38 |
0x69 | 00 01 63 02 | [value 0] ComponentImport { name: ComponentImportName("c"), ty: Value(Primitive(String)) } |
| 39 |
| 73 |
| 40 |
0x6e | 07 03 | component type section |
| 41 |
0x70 | 01 | 1 count |
| 42 |
0x71 | 42 00 | [type 1] Instance([]) |
| 43 |
0x73 | 0a 06 | component import section |
| 44 |
0x75 | 01 | 1 count |
| 45 |
0x76 | 00 01 64 05 | [instance 0] ComponentImport { name: ComponentImportName("d"), ty: Instance(1) } |
| 46 |
| 01 |
| 47 |
0x7b | 07 03 | component type section |
| 48 |
0x7d | 01 | 1 count |
| 49 |
0x7e | 41 00 | [type 2] Component([]) |
| 50 |
0x80 | 0a 06 | component import section |
| 51 |
0x82 | 01 | 1 count |
| 52 |
0x83 | 00 01 65 04 | [component 0] ComponentImport { name: ComponentImportName("e"), ty: Component(2) } |
| 53 |
| 02 |
| 54 |
0x88 | 00 13 | custom section |
| 55 |
0x8a | 0e 63 6f 6d | name: "component-name" |
| 56 |
| 70 6f 6e 65 |
| 57 |
| 6e 74 2d 6e |
| 58 |
| 61 6d 65 |
| 59 |
0x99 | 00 02 | component name |
| 60 |
0x9b | 01 63 | "c" |
| 61 |
0x9d | 06 1b | component alias section |
| 62 |
0x9f | 05 | 5 count |
| 63 |
0xa0 | 00 11 00 00 | alias [module 0] InstanceExport { kind: Module, instance_index: 0, name: "a" } |
| 64 |
| 01 61 |
| 65 |
0xa6 | 01 00 00 01 | alias [func 0] InstanceExport { kind: Func, instance_index: 0, name: "b" } |
| 66 |
| 62 |
| 67 |
0xab | 02 00 00 01 | alias [value 0] InstanceExport { kind: Value, instance_index: 0, name: "c" } |
| 68 |
| 63 |
| 69 |
0xb0 | 05 00 00 01 | alias [instance 1] InstanceExport { kind: Instance, instance_index: 0, name: "d" } |
| 70 |
| 64 |
| 71 |
0xb5 | 04 00 00 01 | alias [component 1] InstanceExport { kind: Component, instance_index: 0, name: "e" } |
| 72 |
| 65 |
| 73 |
0xba | 05 19 | component instance section |
| 74 |
0xbc | 01 | 1 count |
| 75 |
0xbd | 00 00 05 01 | [instance 2] Instantiate { component_index: 0, args: [ComponentInstantiationArg { name: "a", kind: Module, index: 0 }, ComponentInstantiationArg { name: "b", kind: Func, index: 0 }, ComponentInstantiationArg { name: "c", kind: Value, index: 0 }, ComponentInstantiationArg { name: "d", kind: Instance, index: 1 }, ComponentInstantiationArg { name: "e", kind: Component, index: 1 }] } |
| 76 |
| 61 00 11 00 |
| 77 |
| 01 62 01 00 |
| 78 |
| 01 63 02 00 |
| 79 |
| 01 64 05 01 |
| 80 |
| 01 65 04 01 |
| 81 |
0xd5 | 00 1d | custom section |
| 82 |
0xd7 | 0e 63 6f 6d | name: "component-name" |
| 83 |
| 70 6f 6e 65 |
| 84 |
| 6e 74 2d 6e |
| 85 |
| 61 6d 65 |
| 86 |
0xe6 | 01 05 04 | component name section |
| 87 |
0xe9 | 01 | 1 count |
| 88 |
0xea | 00 01 63 | Naming { index: 0, name: "c" } |
| 89 |
0xed | 01 05 05 | instance name section |
| 90 |
0xf0 | 01 | 1 count |
| 91 |
0xf1 | 00 01 69 | Naming { index: 0, name: "i" } |