diff options
| author | Luke Wagner <luke@mozilla.com> | 2016-03-07 11:45:32 -0600 |
|---|---|---|
| committer | Luke Wagner <luke@mozilla.com> | 2016-03-07 11:45:32 -0600 |
| commit | c0c0dc12f60f4fd6413065015becab351e095d3c (patch) | |
| tree | ea89d3a8495d2450dc46ef17178f8b2678afcb68 /BinaryEncoding.md | |
| parent | bbc5df6284c8f6230e320c2afd387ea9054e28cc (diff) | |
| download | nanowasm-design-c0c0dc12f60f4fd6413065015becab351e095d3c.tar.gz | |
Store data segments inline
Diffstat (limited to 'BinaryEncoding.md')
| -rw-r--r-- | BinaryEncoding.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/BinaryEncoding.md b/BinaryEncoding.md index 0aac532..532f632 100644 --- a/BinaryEncoding.md +++ b/BinaryEncoding.md @@ -212,12 +212,12 @@ A module may only contain one data segments section. | count | `varuint32` | count of data segments to follow | | entries | `data_segment*` | repeated data segments as described below | -* ```varuint32```: The number of data segments in the section. -* For each data segment: - - ```uint32```: The base address of the data segment in memory. - - ```uint32```: The offset of the data segment's data in the file. - - ```uint32```: The size of the data segment (in bytes) - - ```uint8```: ```1``` if the segment's data should be automatically loaded into memory at module load time. +a `data_segment` is: + +| Field | Type | Description | +| ----- | ----- | ----- | +| offset | `uint32` | the offset in linear memory at which to store the data | +| size | `uint32` | the size of the data segment (in bytes) | ### Indirect Function Table section |
