0x0 | 00 61 73 6d | version 13 (Component)
| 0d 00 01 00
0x8 | 07 1f | component type section
0xa | 01 | 1 count
0xb | 42 04 01 40 | [type 0] Instance([Type(Func(ComponentFuncType { async_: false, params: [], result: None })), Export { name: ComponentExportName("f1"), ty: Func(0) }, Type(Func(ComponentFuncType { async_: false, params: [("p1", Primitive(String))], result: None })), Export { name: ComponentExportName("f2"), ty: Func(1) }])
| 00 01 00 04
| 00 02 66 31
| 01 00 01 40
| 01 02 70 31
| 73 01 00 04
| 00 02 66 32
| 01 01
0x29 | 0a 06 | component import section
0x2b | 01 | 1 count
0x2c | 00 01 69 05 | [instance 0] ComponentImport { name: ComponentImportName("i"), ty: Instance(0) }
| 00
0x31 | 06 13 | component alias section
0x33 | 03 | 3 count
0x34 | 01 00 00 02 | alias [func 0] InstanceExport { kind: Func, instance_index: 0, name: "f1" }
| 66 31
0x3a | 01 00 00 02 | alias [func 1] InstanceExport { kind: Func, instance_index: 0, name: "f2" }
| 66 32
0x40 | 01 00 00 02 | alias [func 2] InstanceExport { kind: Func, instance_index: 0, name: "f1" }
| 66 31
0x46 | 08 05 | canonical function section
0x48 | 01 | 1 count
0x49 | 01 00 02 00 | [core func 0] Lower { func_index: 2, options: [] }
0x4d | 01 2b | [core module 0] inline size
0x4f | 00 61 73 6d | version 1 (Module)
| 01 00 00 00
0x57 | 01 04 | type section
0x59 | 01 | 1 count
0x5a | 60 00 00 | [type 0] SubType { is_final: true, supertype_idx: None, composite_type: CompositeType { inner: Func(FuncType { params: [], results: [] }), shared: false, descriptor_idx: None, describes_idx: None } }
0x5d | 03 02 | func section
0x5f | 01 | 1 count
0x60 | 00 | [func 0] type 0
0x61 | 07 06 | export section
0x63 | 01 | 1 count
0x64 | 02 66 33 00 | export Export { name: "f3", kind: Func, index: 0 }
| 00
0x69 | 0a 04 | code section
0x6b | 01 | 1 count
============== func 0 ====================
0x6c | 02 | size of function
0x6d | 00 | 0 local blocks
0x6e | 0b | end
0x6f | 00 09 | custom section
0x71 | 04 6e 61 6d | name: "name"
| 65
0x76 | 00 02 | module name
0x78 | 01 6d | "m"
0x7a | 02 04 | core instance section
0x7c | 01 | 1 count
0x7d | 00 00 00 | [core instance 0] Instantiate { module_index: 0, args: [] }
0x80 | 06 0f | component alias section
0x82 | 02 | 2 count
0x83 | 00 00 01 00 | alias [core func 1] CoreInstanceExport { kind: Func, instance_index: 0, name: "f3" }
| 02 66 33
0x8a | 00 00 01 00 | alias [core func 2] CoreInstanceExport { kind: Func, instance_index: 0, name: "f3" }
| 02 66 33
0x91 | 00 26 | custom section
0x93 | 0e 63 6f 6d | name: "component-name"
| 70 6f 6e 65
| 6e 74 2d 6e
| 61 6d 65
0xa2 | 01 06 00 11 | core module name section
0xa6 | 01 | 1 count
0xa7 | 00 01 6d | Naming { index: 0, name: "m" }
0xaa | 01 06 00 12 | core instance name section
0xae | 01 | 1 count
0xaf | 00 01 6d | Naming { index: 0, name: "m" }
0xb2 | 01 05 05 | instance name section
0xb5 | 01 | 1 count
0xb6 | 00 01 69 | Naming { index: 0, name: "i" }