wasmtime_store_new function
- @Native<Pointer<
wasmtime_store_t> Function(Pointer<wasm_engine_t> engine, Pointer<Void> data, Pointer<NativeFunction< finalizer)>(ffi.Pointer<wasm_engine_t>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.Void>)>>)>()Void Function(Pointer< >Void> )>
- Pointer<
wasm_engine_t> engine, - Pointer<
Void> data, - Pointer<
NativeFunction< finalizerVoid Function(Pointer< >Void> )>
\brief Creates a new store within the specified engine.
\param engine the compilation environment with configuration this store is
connected to
\param data user-provided data to store, can later be acquired with
#wasmtime_context_get_data.
\param finalizer an optional finalizer for data
This function creates a fresh store with the provided configuration settings. The returned store must be deleted with #wasmtime_store_delete.
Implementation
@ffi.Native<
ffi.Pointer<wasmtime_store_t> Function(
ffi.Pointer<wasm_engine_t>,
ffi.Pointer<ffi.Void>,
ffi.Pointer<ffi.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.Void>)>>,
)
>()
external ffi.Pointer<wasmtime_store_t> wasmtime_store_new(
ffi.Pointer<wasm_engine_t> engine,
ffi.Pointer<ffi.Void> data,
ffi.Pointer<ffi.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.Void>)>>
finalizer,
);