0x0 | 00 61 73 6d | version 13 (Component)
| 0d 00 01 00
0x8 | 01 29 | [core module 0] inline size
0xa | 00 61 73 6d | version 1 (Module)
| 01 00 00 00
0x12 | 01 04 | type section
0x14 | 01 | 1 count
0x15 | 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 } }
0x18 | 03 02 | func section
0x1a | 01 | 1 count
0x1b | 00 | [func 0] type 0
0x1c | 07 04 | export section
0x1e | 01 | 1 count
0x1f | 00 00 00 | export Export { name: "", kind: Func, index: 0 }
0x22 | 0a 04 | code section
0x24 | 01 | 1 count
============== func 0 ====================
0x25 | 02 | size of function
0x26 | 00 | 0 local blocks
0x27 | 0b | end
0x28 | 00 09 | custom section
0x2a | 04 6e 61 6d | name: "name"
| 65
0x2f | 00 02 | module name
0x31 | 01 6d | "m"
0x33 | 01 22 | [core module 1] inline size
0x35 | 00 61 73 6d | version 1 (Module)
| 01 00 00 00
0x3d | 01 04 | type section
0x3f | 01 | 1 count
0x40 | 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 } }
0x43 | 02 06 | import section
0x45 | 01 | 1 count
0x46 | 00 01 61 00 | import [func 0] Import { module: "", name: "a", ty: Func(0) }
| 00
0x4b | 00 0a | custom section
0x4d | 04 6e 61 6d | name: "name"
| 65
0x52 | 00 03 | module name
0x54 | 02 6d 32 | "m2"
0x57 | 02 04 | core instance section
0x59 | 01 | 1 count
0x5a | 00 00 00 | [core instance 0] Instantiate { module_index: 0, args: [] }
0x5d | 06 06 | component alias section
0x5f | 01 | 1 count
0x60 | 00 00 01 00 | alias [core func 0] CoreInstanceExport { kind: Func, instance_index: 0, name: "" }
| 00
0x65 | 02 0d | core instance section
0x67 | 02 | 2 count
0x68 | 01 01 01 61 | [core instance 1] FromExports([Export { name: "a", kind: Func, index: 0 }])
| 00 00
0x6e | 00 01 01 00 | [core instance 2] Instantiate { module_index: 1, args: [InstantiationArg { name: "", kind: Instance, index: 1 }] }
| 12 01
0x74 | 00 2b | custom section
0x76 | 0e 63 6f 6d | name: "component-name"
| 70 6f 6e 65
| 6e 74 2d 6e
| 61 6d 65
0x85 | 01 06 00 00 | core func name section
0x89 | 01 | 1 count
0x8a | 00 01 66 | Naming { index: 0, name: "f" }
0x8d | 01 0a 00 11 | core module name section
0x91 | 02 | 2 count
0x92 | 00 01 6d | Naming { index: 0, name: "m" }
0x95 | 01 02 6d 32 | Naming { index: 1, name: "m2" }
0x99 | 01 06 00 12 | core instance name section
0x9d | 01 | 1 count
0x9e | 00 01 4d | Naming { index: 0, name: "M" }