wasmtime_sharedmemory_new function
- @Native<Pointer<
wasmtime_error_t> Function()>(ffi.Pointer<wasm_engine_t>, ffi.Pointer<wasm_memorytype_t>, ffi.Pointer<ffi.Pointer<wasmtime_sharedmemory_t>>)>()
\brief Creates a new WebAssembly shared linear memory
\param engine engine that created shared memory is associated with \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<wasm_engine_t>,
ffi.Pointer<wasm_memorytype_t>,
ffi.Pointer<ffi.Pointer<wasmtime_sharedmemory_t>>,
)
>()
external ffi.Pointer<wasmtime_error_t> wasmtime_sharedmemory_new(
ffi.Pointer<wasm_engine_t> engine,
ffi.Pointer<wasm_memorytype_t> ty,
ffi.Pointer<ffi.Pointer<wasmtime_sharedmemory_t>> ret,
);