wasmtime_memory_new function
- @Native<Pointer<
wasmtime_error_t> Function(Pointer<wasmtime_context_t> store, Pointer<wasm_memorytype_t> ty, Pointer<wasmtime_memory_t> ret)>(ffi.Pointer<wasmtime_context_t>, ffi.Pointer<wasm_memorytype_t>, ffi.Pointer<wasmtime_memory_t>)>()
- Pointer<
wasmtime_context_t> store, - Pointer<
wasm_memorytype_t> ty, - Pointer<
wasmtime_memory_t> ret
\brief Creates a new WebAssembly linear memory
\param store the store to create the memory within \param ty the type of the memory to create \param ret where to store the returned memory
If an error happens when creating the memory it's returned and owned by the
caller. If an error happens then ret is not filled in.
Implementation
@ffi.Native<
ffi.Pointer<wasmtime_error_t> Function(
ffi.Pointer<wasmtime_context_t>,
ffi.Pointer<wasm_memorytype_t>,
ffi.Pointer<wasmtime_memory_t>,
)
>()
external ffi.Pointer<wasmtime_error_t> wasmtime_memory_new(
ffi.Pointer<wasmtime_context_t> store,
ffi.Pointer<wasm_memorytype_t> ty,
ffi.Pointer<wasmtime_memory_t> ret,
);