wasmtime_store_new function

  1. @Native<Pointer<wasmtime_store_t> Function(Pointer<wasm_engine_t> engine, Pointer<Void> data, Pointer<NativeFunction<Void Function(Pointer<Void>)>> finalizer)>(ffi.Pointer<wasm_engine_t>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.Void>)>>)>()
Pointer<wasmtime_store_t> wasmtime_store_new(
  1. Pointer<wasm_engine_t> engine,
  2. Pointer<Void> data,
  3. Pointer<NativeFunction<Void Function(Pointer<Void>)>> finalizer
)

\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,
);