Data
zio.wasm.Data
The initial contents of a memory are zero bytes. Data segments can be used to initialize a range of memory from a static vector of bytes.
The datas component of a module defines a vector of data segments.
Like element segments, data segments have a mode that identifies them as either passive or active. A passive data segment’s contents can be copied into a memory using the memory.init instruction. An active data segment copies its contents into a memory during instantiation, as specified by a memory index and a constant expression defining an offset into that memory.
Data segments are referenced through data indices.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Section[CoreIndexSpace]class Objecttrait Matchableclass Any
Members list
In this article