Struct parity_wasm::interpreter::MemoryInstance [] [src]

pub struct MemoryInstance { /* fields omitted */ }

Linear memory instance.

Methods

impl MemoryInstance
[src]

Create new linear memory instance.

Return linear memory size (in pages).

Get data at given offset.

Set data at given offset.

Increases the size of the linear memory by given number of pages. Returns -1 if allocation fails or previous memory size, if succeeds.