[][src]Trait sp_wasm_interface::ReadPrimitive

pub trait ReadPrimitive<T: PointerType> {
    pub fn read_primitive(&self, ptr: Pointer<T>) -> Result<T>;
}

Something that can read a primitive from a wasm memory location.

Required methods

pub fn read_primitive(&self, ptr: Pointer<T>) -> Result<T>

Read a primitive from the given memory location ptr.

Loading content...

Implementors

impl<'_> ReadPrimitive<u32> for &'_ mut dyn FunctionContext[src]

impl<'_> ReadPrimitive<u64> for &'_ mut dyn FunctionContext[src]

Loading content...