Struct wasmi::MemoryRef [] [src]

pub struct MemoryRef(_);

Reference to a MemoryInstance.

This reference has a reference-counting semantics.

Methods from Deref<Target = MemoryInstance>

[src]

[src]

[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 previous memory size (in pages) 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

Trait Implementations

impl Clone for MemoryRef
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for MemoryRef
[src]

[src]

Formats the value using the given formatter.

impl Deref for MemoryRef
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.