fn write_memory(
    store: impl AsContextMut,
    memory: Memory,
    ptr: u32,
    data: &[u8]
) -> Result<(), InvokeError<WasmRuntimeError>>