| 1 |
0x0 | 00 61 73 6d | version 13 (Component) |
| 2 |
| 0d 00 01 00 |
| 3 |
0x8 | 07 1f | component type section |
| 4 |
0xa | 01 | 1 count |
| 5 |
0xb | 42 04 01 40 | [type 0] Instance([Type(Func(ComponentFuncType { params: [], result: None })), Export { name: ComponentExportName("f1"), ty: Func(0) }, Type(Func(ComponentFuncType { params: [("p1", Primitive(String))], result: None })), Export { name: ComponentExportName("f2"), ty: Func(1) }]) |
| 6 |
| 00 01 00 04 |
| 7 |
| 00 02 66 31 |
| 8 |
| 01 00 01 40 |
| 9 |
| 01 02 70 31 |
| 10 |
| 73 01 00 04 |
| 11 |
| 00 02 66 32 |
| 12 |
| 01 01 |
| 13 |
0x29 | 0a 06 | component import section |
| 14 |
0x2b | 01 | 1 count |
| 15 |
0x2c | 00 01 69 05 | [instance 0] ComponentImport { name: ComponentImportName("i"), ty: Instance(0) } |
| 16 |
| 00 |
| 17 |
0x31 | 06 13 | component alias section |
| 18 |
0x33 | 03 | 3 count |
| 19 |
0x34 | 01 00 00 02 | alias [func 0] InstanceExport { kind: Func, instance_index: 0, name: "f1" } |
| 20 |
| 66 31 |
| 21 |
0x3a | 01 00 00 02 | alias [func 1] InstanceExport { kind: Func, instance_index: 0, name: "f2" } |
| 22 |
| 66 32 |
| 23 |
0x40 | 01 00 00 02 | alias [func 2] InstanceExport { kind: Func, instance_index: 0, name: "f1" } |
| 24 |
| 66 31 |
| 25 |
0x46 | 08 05 | canonical function section |
| 26 |
0x48 | 01 | 1 count |
| 27 |
0x49 | 01 00 02 00 | [core func 0] Lower { func_index: 2, options: [] } |
| 28 |
0x4d | 01 2b | [core module 0] inline size |
| 29 |
0x4f | 00 61 73 6d | version 1 (Module) |
| 30 |
| 01 00 00 00 |
| 31 |
0x57 | 01 04 | type section |
| 32 |
0x59 | 01 | 1 count |
| 33 |
--- rec group 0 (implicit) --- |
| 34 |
0x5a | 60 00 00 | [type 0] SubType { is_final: true, supertype_idx: None, composite_type: CompositeType { inner: Func(FuncType { params: [], results: [] }), shared: false } } |
| 35 |
0x5d | 03 02 | func section |
| 36 |
0x5f | 01 | 1 count |
| 37 |
0x60 | 00 | [func 0] type 0 |
| 38 |
0x61 | 07 06 | export section |
| 39 |
0x63 | 01 | 1 count |
| 40 |
0x64 | 02 66 33 00 | export Export { name: "f3", kind: Func, index: 0 } |
| 41 |
| 00 |
| 42 |
0x69 | 0a 04 | code section |
| 43 |
0x6b | 01 | 1 count |
| 44 |
============== func 0 ==================== |
| 45 |
0x6c | 02 | size of function |
| 46 |
0x6d | 00 | 0 local blocks |
| 47 |
0x6e | 0b | end |
| 48 |
0x6f | 00 09 | custom section |
| 49 |
0x71 | 04 6e 61 6d | name: "name" |
| 50 |
| 65 |
| 51 |
0x76 | 00 02 | module name |
| 52 |
0x78 | 01 6d | "m" |
| 53 |
0x7a | 02 04 | core instance section |
| 54 |
0x7c | 01 | 1 count |
| 55 |
0x7d | 00 00 00 | [core instance 0] Instantiate { module_index: 0, args: [] } |
| 56 |
0x80 | 06 0f | component alias section |
| 57 |
0x82 | 02 | 2 count |
| 58 |
0x83 | 00 00 01 00 | alias [core func 1] CoreInstanceExport { kind: Func, instance_index: 0, name: "f3" } |
| 59 |
| 02 66 33 |
| 60 |
0x8a | 00 00 01 00 | alias [core func 2] CoreInstanceExport { kind: Func, instance_index: 0, name: "f3" } |
| 61 |
| 02 66 33 |
| 62 |
0x91 | 00 26 | custom section |
| 63 |
0x93 | 0e 63 6f 6d | name: "component-name" |
| 64 |
| 70 6f 6e 65 |
| 65 |
| 6e 74 2d 6e |
| 66 |
| 61 6d 65 |
| 67 |
0xa2 | 01 06 00 11 | core module name section |
| 68 |
0xa6 | 01 | 1 count |
| 69 |
0xa7 | 00 01 6d | Naming { index: 0, name: "m" } |
| 70 |
0xaa | 01 06 00 12 | core instance name section |
| 71 |
0xae | 01 | 1 count |
| 72 |
0xaf | 00 01 6d | Naming { index: 0, name: "m" } |
| 73 |
0xb2 | 01 05 05 | instance name section |
| 74 |
0xb5 | 01 | 1 count |
| 75 |
0xb6 | 00 01 69 | Naming { index: 0, name: "i" } |