Skip to contents

Write bytes to WASM memory.

Usage

wasmer_memory_write_ext(ptr, instance_name, memory_name, offset, bytes)

Arguments

ptr

External pointer to WasmerRuntime.

instance_name

Name of the instance.

memory_name

Name of the exported memory.

offset

Offset to start writing.

bytes

Raw vector of bytes to write.

Value

TRUE if successful

Details

Write bytes to WASM memory

Examples

if (FALSE) { # \dontrun{
wasmer_memory_write_ext(ptr, "inst1", "memory", 0, as.raw(c(1,2,3)))
} # }