diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-11-04 20:55:20 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-11-04 20:57:52 +0100 |
| commit | 063074e6ca1675a3d6f1ecdcea2b7d76ef7e10ad (patch) | |
| tree | 52f881b9c42663054766a57c0051a8c06e80986d /BinaryEncoding.md | |
| parent | 4d20d6ef455f167dadcac899fcfe49b97c228325 (diff) | |
| download | nanowasm-design-063074e6ca1675a3d6f1ecdcea2b7d76ef7e10ad.tar.gz | |
BinaryEncoding.md: Add nw_iti custom section
Diffstat (limited to 'BinaryEncoding.md')
| -rw-r--r-- | BinaryEncoding.md | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/BinaryEncoding.md b/BinaryEncoding.md index 2f23e89..135b98f 100644 --- a/BinaryEncoding.md +++ b/BinaryEncoding.md @@ -564,6 +564,24 @@ in-memory. | ----- | ---- | ----------- | | index | uint32* | Type index, as expressed by the [function section](#function-section), encoded as little-endian +### NanoWasm import type index section + +Custom name `name` field: `"nw_iti"` + +The NanoWasm import type index section is a +[custom section](#high-level-structure). It is therefore encoded with id `0` +followed by the name string `"nw_iti"`. It is meant as a +[NanoWasm](#NanoWasm.md) extension to the MVP that allows NanoWasm-compatible +interpreters to quickly retrieve the offset where the +[`external_kind`](#import-entry) (and, optionally, its `type`) members of +an import entry are located, in order to avoid reading unneded information +from the [import section](#import-section) or keep this information +in-memory. + +| Field | Type | Description | +| ----- | ---- | ----------- | +| offset | uint32* | Offset inside the [import section](#import-section), encoded as little-endian | + ### NanoWasm function body offset section Custom section `name` field: `"nw_fbo"` |
