fn new_uref(&mut self, uref_ptr: u32, value_ptr: u32, value_size: u32) -> Result<(), Trap> {
        let cl_value = self.cl_value_from_mem(value_ptr, value_size)?; // read initial value from memory
        let uref = self.context.new_uref(StoredValue::CLValue(cl_value))?;
        self.memory
            .set(uref_ptr, &uref.into_bytes().map_err(Error::BytesRepr)?)
            .map_err(|e| Error::Interpreter(e.into()).into())
    }
/// Generates new unforgable reference and adds it to the context's
/// access_rights set.
Generates new unforgable reference and adds it to the context's
access_rights set.
Generates new unforgable reference and adds it to the context ' s access_rights set .
fn new_uref(&mut self, uref_ptr: u32, value_ptr: u32, value_size: u32) -> Result<(), Trap> {
        let cl_value = self.cl_value_from_mem(value_ptr, value_size)?; // read initial value from memory
        let uref = self.context.new_uref(StoredValue::CLValue(cl_value))?;
        self.memory
            .set(uref_ptr, &uref.into_bytes().map_err(Error::BytesRepr)?)
            .map_err(|e| Error::Interpreter(e.into()).into())
    }
fn new_uref ( & mut self , uref_ptr : u32 , value_ptr : u32 , value_size : u32 ) -> Result < ( ) , Trap > { let cl_value = self . cl_value_from_mem ( value_ptr , value_size ) ? ; // read initial value from memory let uref = self . context . new_uref ( StoredValue :: CLValue ( cl_value ) ) ? ; self . memory . set ( uref_ptr , & uref . into_bytes ( ) . map_err ( Error :: BytesRepr ) ? ) . map_err ( | e | Error :: Interpreter ( e . into ( ) ) . into ( ) ) }
Generates new unforgable reference and adds it to the context's
access_rights set.
Generates new unforgable reference and adds it to the context ' s access_rights set .
&mut self
uref_ptr
u32
value_ptr
u32
value_size
u32
&mut self
uref_ptr
u32
value_ptr
u32
value_size
u32