Struct sophon_wasm::interpreter::MemoryInstance [] [src]

pub struct MemoryInstance { /* fields omitted */ }

Linear memory instance.

Methods

impl MemoryInstance
[src]

[src]

Create new linear memory instance.

[src]

Return linear memory limits.

[src]

Return linear memory size (in pages).

[src]

Get data at given offset.

[src]

Write memory slice into another slice

[src]

Set data at given offset.

[src]

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

[src]

Copy memory region. Semantically equivalent to memmove.

[src]

Copy memory region, non-overlapping version. Semantically equivalent to memcpy, but returns Error if source overlaping with destination.

[src]

Clear memory region with a specified value. Semantically equivalent to memset.

[src]

Zero memory region