Wasmex.memory
You're seeing just the function
memory
, go back to Wasmex module for more information.
Link to this function
memory(pid, type, offset)
Finds the exported memory of the given WASM instance and returns it as a Wasmex.Memory
.
The memory is a collection of bytes which can be viewed and interpreted as a sequence of different
(data-)types
:
- uint8 / int8 - (un-)signed 8-bit integer values
- uint16 / int16 - (un-)signed 16-bit integer values
- uint32 / int32 - (un-)signed 32-bit integer values
We can think of it as a list of values of the above type (where each value may be larger than a byte).
The offset
value can be used to start reading the memory from a chosen position.