Function multiversx_chain_vm::mem_conv::with_bytes
source · pub unsafe fn with_bytes<F, R>(offset: MemPtr, length: MemLength, f: F) -> Rwhere
F: FnOnce(&[u8]) -> R,
Expand description
Interprets an offset and length (both isize) as a byte slice.
Safety
Should only be called with arguments that originate from with_mem_ptr
.