aboutsummaryrefslogtreecommitdiff
path: root/BinaryEncoding.md
diff options
context:
space:
mode:
authorLuke Wagner <luke@mozilla.com>2016-03-12 15:12:54 -0600
committerLuke Wagner <luke@mozilla.com>2016-03-12 15:12:54 -0600
commit4c310f2c4e7e2560fa0225b0bb2cc7f4c8ab3dde (patch)
tree03043ca8a033ea862ddff4c183a30236a09e8847 /BinaryEncoding.md
parente8fb2df76cb065c1fd5d3804a50fb202ee090c69 (diff)
downloadnanowasm-design-4c310f2c4e7e2560fa0225b0bb2cc7f4c8ab3dde.tar.gz
Update size of smallest module
Diffstat (limited to 'BinaryEncoding.md')
-rw-r--r--BinaryEncoding.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/BinaryEncoding.md b/BinaryEncoding.md
index fdc2427..cac7fef 100644
--- a/BinaryEncoding.md
+++ b/BinaryEncoding.md
@@ -106,11 +106,12 @@ above):
* [End](#end-section) section
* [Names](#names-section) section
-Known sections (from this list) may not appear out of order.
+Thus, the shortest valid module is 13 bytes (`magic number`, `version`,
+`size` = 4, `id_len` = 3, `id_str` = "end").
-The end of the last present section must coincide with the last byte of the
-module. The shortest valid module is 8 bytes (`magic number`, `version`,
-followed by zero sections).
+Additionally, known sections (from the above list) may not appear out of order
+and the end of the last present section must coincide with the last byte of the
+module.
### Signatures section