Trait ceres_executor::derive::Memory[][src]

pub trait Memory: Sized + Clone {
    fn new(initial: u32, maximum: Option<u32>) -> Result<Self>;
fn get(&self, ptr: u32, buf: &mut [u8]) -> Result<()>;
fn set(&self, ptr: u32, value: &[u8]) -> Result<()>; }
Expand description

Ceres wasm executor memory

Required methods

Construct a new linear memory instance

Read a memory area at the address ptr with the size of the provided slice buf.

Write a memory area at the address ptr with contents of the provided slice buf.

Implementors