From 01704645e0f96dee6cdb86c15b1d2896c1125a6e Mon Sep 17 00:00:00 2001 From: Douglas Crosher Date: Mon, 22 Feb 2016 10:03:26 +1100 Subject: Encode the memory sizes in units of pages, and use a leb128 encoding. --- BinaryEncoding.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'BinaryEncoding.md') diff --git a/BinaryEncoding.md b/BinaryEncoding.md index bfdbe30..fd5c031 100644 --- a/BinaryEncoding.md +++ b/BinaryEncoding.md @@ -83,8 +83,8 @@ A module may contain at most one memory section. | Field | Type | Description | | ----- | ----- | ----- | | id = `0x00` | `uint8` | section identifier for memory | -| min_mem_size | `uint8` | minimize memory size as a power of `2` | -| max_mem_size | `uint8` | maximum memory size as a power of `2` | +| min_mem_pages | `varuint32` | minimize memory size in 64KiB pages | +| max_mem_pages | `varuint32` | maximum memory size in 64KiB pages | | exported | `uint8` | `1` if the memory is visible outside the module | ### Signatures section -- cgit v1.2.3