aboutsummaryrefslogtreecommitdiff
path: root/BinaryEncoding.md
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2025-11-04 20:57:32 +0100
committerXavier Del Campo Romero <xavi92@disroot.org>2025-11-04 20:57:52 +0100
commitb075df4d95335cb70b66dd133522686a6c98209c (patch)
tree8c34edd6889ddbd3dbe07b3242a4679f78c7e4c9 /BinaryEncoding.md
parent063074e6ca1675a3d6f1ecdcea2b7d76ef7e10ad (diff)
downloadnanowasm-design-b075df4d95335cb70b66dd133522686a6c98209c.tar.gz
BinaryEncoding.md: Update definition for nw_lo
Diffstat (limited to 'BinaryEncoding.md')
-rw-r--r--BinaryEncoding.md11
1 files changed, 9 insertions, 2 deletions
diff --git a/BinaryEncoding.md b/BinaryEncoding.md
index 135b98f..8a6c9a8 100644
--- a/BinaryEncoding.md
+++ b/BinaryEncoding.md
@@ -632,8 +632,15 @@ Where each non-imported function defines a `label_offset` entry as follows:
| Field | Type | Description |
| ----- | ---- | ----------- |
-| count | varuint32 | number of label offsets
-| offset | uint32* | offset to the label index relative to the function body start, encoded as little-endian
+| count | varuint32 | number of label entries |
+| offset | `label_entry*` | label entries |
+
+where a `label_entry` is encoded as:
+
+| Field | Type | Description |
+| ----- | ---- | ----------- |
+| start | `uint32` | offset for the `block` start, encoded as little-endian |
+| end | `uint32` | offset for the corresponding `end`, encoded as little-endian |
# Function Bodies