From b075df4d95335cb70b66dd133522686a6c98209c Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Tue, 4 Nov 2025 20:57:32 +0100 Subject: BinaryEncoding.md: Update definition for nw_lo --- BinaryEncoding.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'BinaryEncoding.md') 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 -- cgit v1.2.3