Trait sp_wasm_interface::WritePrimitive
source · [−]pub trait WritePrimitive<T: PointerType> {
fn write_primitive(&mut self, ptr: Pointer<T>, t: T) -> Result<()>;
}
Expand description
Something that can write a primitive to wasm memory location.
Required methods
fn write_primitive(&mut self, ptr: Pointer<T>, t: T) -> Result<()>
fn write_primitive(&mut self, ptr: Pointer<T>, t: T) -> Result<()>
Write the given value t
to the given memory location ptr
.