diff options
| author | Douglas Crosher <info@jsstats.com> | 2016-02-22 10:03:26 +1100 |
|---|---|---|
| committer | Douglas Crosher <info@jsstats.com> | 2016-02-22 10:03:26 +1100 |
| commit | 01704645e0f96dee6cdb86c15b1d2896c1125a6e (patch) | |
| tree | 2789d1eb69a4ee350e5257b0917514971c200b33 /BinaryEncoding.md | |
| parent | aea48078aef9fbcaf52b3f728c2231b2fe375437 (diff) | |
| download | nanowasm-design-01704645e0f96dee6cdb86c15b1d2896c1125a6e.tar.gz | |
Encode the memory sizes in units of pages, and use a leb128 encoding.
Diffstat (limited to 'BinaryEncoding.md')
| -rw-r--r-- | BinaryEncoding.md | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
