wasmer_vm::vmcontextFunction memory_copy
Source pub(crate) unsafe fn memory_copy(
mem: &VMMemoryDefinition,
dst: u32,
src: u32,
len: u32,
) -> Result<(), Trap>
Expand description
Do an unsynchronized, non-atomic memory.copy
for the memory.
§Errors
Returns a Trap
error when the source or destination ranges are out of
bounds.
§Safety
The memory is not copied atomically and is not synchronized: it’s the
caller’s responsibility to synchronize.