multiversx_chain_vm::mem_conv

Function with_bytes_mut

Source
pub unsafe fn with_bytes_mut<F, R>(offset: MemPtr, length: MemLength, f: F) -> R
where F: FnOnce(&mut [u8]) -> R,
Expand description

Interprets an offset and length (both isize) as a mutable byte slice.

ยงSafety

Should only be called with arguments that originate from with_mem_ptr_mut.