Trait Caller

Source
pub trait Caller<'a> {
    // Required methods
    fn read_buf(&self, ptr: u32, buf: &mut [u8]) -> Result<()>;
    fn write_buf(&mut self, ptr: u32, buf: &[u8]) -> Result<()>;
    fn alloc(&mut self, size: u32) -> Result<u32>;
    fn free(&mut self, ptr: u32, size: u32) -> Result<u32>;
}
Expand description

Instance Accessor

Required Methods§

Source

fn read_buf(&self, ptr: u32, buf: &mut [u8]) -> Result<()>

Read data from instance memory

Source

fn write_buf(&mut self, ptr: u32, buf: &[u8]) -> Result<()>

Write data to instance memory

Source

fn alloc(&mut self, size: u32) -> Result<u32>

Allocate memory in instance

Source

fn free(&mut self, ptr: u32, size: u32) -> Result<u32>

Free memory in instance

Implementors§