| 1 |
0x0 | 00 61 73 6d | version 13 (Component) |
| 2 |
| 0d 00 01 00 |
| 3 |
0x8 | 03 0d | core type section |
| 4 |
0xa | 01 | 1 count |
| 5 |
0xb | 50 02 01 60 | [core type 0] Module([Type(RecGroup { inner: Implicit((14, SubType { is_final: true, supertype_idx: None, composite_type: CompositeType { inner: Func(FuncType { params: [], results: [] }), shared: false } })) }), Import(Import { module: "", name: "f", ty: Func(0) })]) |
| 6 |
| 00 00 00 00 |
| 7 |
| 01 66 00 00 |
| 8 |
0x17 | 0a 07 | component import section |
| 9 |
0x19 | 01 | 1 count |
| 10 |
0x1a | 00 01 61 00 | [module 0] ComponentImport { name: ComponentImportName("a"), ty: Module(0) } |
| 11 |
| 11 00 |
| 12 |
0x20 | 01 2b | [core module 1] inline size |
| 13 |
0x22 | 00 61 73 6d | version 1 (Module) |
| 14 |
| 01 00 00 00 |
| 15 |
0x2a | 01 04 | type section |
| 16 |
0x2c | 01 | 1 count |
| 17 |
--- rec group 0 (implicit) --- |
| 18 |
0x2d | 60 00 00 | [type 0] SubType { is_final: true, supertype_idx: None, composite_type: CompositeType { inner: Func(FuncType { params: [], results: [] }), shared: false } } |
| 19 |
0x30 | 03 02 | func section |
| 20 |
0x32 | 01 | 1 count |
| 21 |
0x33 | 00 | [func 0] type 0 |
| 22 |
0x34 | 07 05 | export section |
| 23 |
0x36 | 01 | 1 count |
| 24 |
0x37 | 01 66 00 00 | export Export { name: "f", kind: Func, index: 0 } |
| 25 |
0x3b | 0a 04 | code section |
| 26 |
0x3d | 01 | 1 count |
| 27 |
============== func 0 ==================== |
| 28 |
0x3e | 02 | size of function |
| 29 |
0x3f | 00 | 0 local blocks |
| 30 |
0x40 | 0b | end |
| 31 |
0x41 | 00 0a | custom section |
| 32 |
0x43 | 04 6e 61 6d | name: "name" |
| 33 |
| 65 |
| 34 |
0x48 | 00 03 | module name |
| 35 |
0x4a | 02 6d 32 | "m2" |
| 36 |
0x4d | 02 0b | core instance section |
| 37 |
0x4f | 02 | 2 count |
| 38 |
0x50 | 00 01 00 | [core instance 0] Instantiate { module_index: 1, args: [] } |
| 39 |
0x53 | 00 00 01 01 | [core instance 1] Instantiate { module_index: 0, args: [InstantiationArg { name: "a", kind: Instance, index: 0 }] } |
| 40 |
| 61 12 00 |
| 41 |
0x5a | 00 29 | custom section |
| 42 |
0x5c | 0e 63 6f 6d | name: "component-name" |
| 43 |
| 70 6f 6e 65 |
| 44 |
| 6e 74 2d 6e |
| 45 |
| 61 6d 65 |
| 46 |
0x6b | 01 0b 00 11 | core module name section |
| 47 |
0x6f | 02 | 2 count |
| 48 |
0x70 | 00 02 6d 31 | Naming { index: 0, name: "m1" } |
| 49 |
0x74 | 01 02 6d 32 | Naming { index: 1, name: "m2" } |
| 50 |
0x78 | 01 0b 00 12 | core instance name section |
| 51 |
0x7c | 02 | 2 count |
| 52 |
0x7d | 00 02 69 31 | Naming { index: 0, name: "i1" } |
| 53 |
0x81 | 01 02 69 32 | Naming { index: 1, name: "i2" } |