aboutsummaryrefslogtreecommitdiff
path: root/BinaryEncoding.md
diff options
context:
space:
mode:
authorSeth Thompson <s3th.thompson@gmail.com>2016-10-26 22:52:58 +0200
committerJF Bastien <github@jfbastien.com>2016-10-26 13:52:58 -0700
commitcad0ea9ed5f0ac1dda62abe2c66d0a38ff8c104d (patch)
treebc913a187f7442120ba466d7fa28096abf193669 /BinaryEncoding.md
parent35e5e2417964cb6eee4c79d33c0abb84e8b4cf18 (diff)
downloadnanowasm-design-cad0ea9ed5f0ac1dda62abe2c66d0a38ff8c104d.tar.gz
fix improperly spaced markdown blocks and typos (for formatting on website (#837)
Diffstat (limited to 'BinaryEncoding.md')
-rw-r--r--BinaryEncoding.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/BinaryEncoding.md b/BinaryEncoding.md
index 6ed1b0e..935e747 100644
--- a/BinaryEncoding.md
+++ b/BinaryEncoding.md
@@ -71,14 +71,17 @@ Note: Gaps are reserved for future extensions. The use of a signed scheme is so
### `value_type`
A `varint7` indicating a [value type](Semantics.md#types). One of:
+
* `i32`
* `i64`
* `f32`
* `f64`
+
as encoded above.
### `block_type`
A `varint7` indicating a block signature. These types are encoded as:
+
* either a [`value_type`](#value_type) indicating a signature with a single result
* or `-0x40` (i.e., the byte `0x40`) indicating a signature with 0 results.
@@ -86,6 +89,7 @@ A `varint7` indicating a block signature. These types are encoded as:
A `varint7` indicating the types of elements in a [table](AstSemantics.md#table).
In the MVP, only one type is available:
+
* [`anyfunc`](AstSemantics.md#table)
Note: In the future, other element types may be allowed.
@@ -130,6 +134,7 @@ The description of a memory.
### `external_kind`
A single-byte unsigned integer indicating the kind of definition being imported or defined:
+
* `0` indicating a `Function` [import](Modules.md#imports) or [definition](Modules.md#function-and-code-sections)
* `1` indicating a `Table` [import](Modules.md#imports) or [definition](Modules.md#table-section)
* `2` indicating a `Memory` [import](Modules.md#imports) or [definition](Modules.md#linear-memory-section)
@@ -228,6 +233,7 @@ The import section declares all imports that will be used in the module.
| entries | `import_entry*` | repeated import entries as described below |
#### Import entry
+
| Field | Type | Description |
| ----- | ---- | ----------- |
| module_len | `varuint32` | module string length |
@@ -330,6 +336,7 @@ The encoding of the [Export section](Modules.md#exports):
| entries | `export_entry*` | repeated export entries as described below |
#### Export entry
+
| Field | Type | Description |
| ----- | ---- | ----------- |
| field_len | `varuint32` | field name string length |