Trait wasmer_runtime_core_fl::loader::Instance[][src]

pub trait Instance {
    type Error: Debug;
    fn call(&mut self, id: usize, args: &[Value]) -> Result<u128, Self::Error>;

    fn read_memory(
        &mut self,
        _offset: u32,
        _len: u32
    ) -> Result<Vec<u8>, Self::Error> { ... }
fn write_memory(
        &mut self,
        _offset: u32,
        _len: u32,
        _buf: &[u8]
    ) -> Result<(), Self::Error> { ... } }
Expand description

This trait represents an instance used by the loader.

Associated Types

The error type returned by this instance.

Required methods

Call a function by id with the given args.

Provided methods

Read memory at the given offset and length.

Write memory at the given offset and length.

Implementors