Function wasmer_vm::vmcontext::memory_fill

source ·
pub(crate) unsafe fn memory_fill(
    mem: &VMMemoryDefinition,
    dst: u32,
    val: u32,
    len: u32,
) -> Result<(), Trap>
Expand description

Perform the memory.fill operation for the memory in an unsynchronized, non-atomic way.

§Errors

Returns a Trap error if the memory range is out of bounds.

§Safety

The memory is not filled atomically and is not synchronized: it’s the caller’s responsibility to synchronize.