diff options
| author | JF Bastien <github@jfbastien.com> | 2016-02-25 09:04:28 -0800 |
|---|---|---|
| committer | JF Bastien <github@jfbastien.com> | 2016-02-25 09:04:28 -0800 |
| commit | a7d67f1f03d5000c1a036499d932327060349e24 (patch) | |
| tree | 532ca57759b39bee8c95e771408f4052c054e12e /BinaryEncoding.md | |
| parent | cbb59025710350a5884acd3ce9a284f7fdf88065 (diff) | |
| download | nanowasm-design-a7d67f1f03d5000c1a036499d932327060349e24.tar.gz | |
Unknown sections
Fixes #208.
A later PR will make sure all sections start with the same format (so all sections use bytes, instead of count, making it easy to know the byte count of unknown sections). We'll also use strings instead.
Diffstat (limited to 'BinaryEncoding.md')
| -rw-r--r-- | BinaryEncoding.md | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/BinaryEncoding.md b/BinaryEncoding.md index fd5c031..a416c7a 100644 --- a/BinaryEncoding.md +++ b/BinaryEncoding.md @@ -187,13 +187,15 @@ stored to from dedicated instructions. | type | `uint8` | the type of the global, as a memory type | | exported | `uint8` | a boolean indicating whether the global variable is exported | -### WorkInProgress: WLL section +### Unknown sections | Field | Type | Description | | ----- | ----- | ----- | -| id = `0x11` | `uint8` | section identifier for globals | -| size | `varuint32` | size of this section in bytes | -| body | `bytes` | contents of this section | +| id | `uint8` | section identifier | +| size | `varuint32` | size of this section in bytes | +| body | `bytes` | contents of this section | + +Sections whose ID is unknown to the WebAssembly implementation are ignored. # AST Encoding |
