wasmtime_linker_module function

  1. @Native<Pointer<wasmtime_error_t> Function(Pointer<wasmtime_linker_t>, Pointer<wasmtime_context_t>, Pointer<wasm_byte_t>, Size, Pointer<wasmtime_module_t>)>(ffi.Pointer<wasmtime_linker_t>, ffi.Pointer<wasmtime_context_t>, ffi.Pointer<ffi.Char>, ffi.Size, ffi.Pointer<wasmtime_module_t>)>()
Pointer<wasmtime_error_t> wasmtime_linker_module(
  1. Pointer<wasmtime_linker_t> linker,
  2. Pointer<wasmtime_context_t> store,
  3. Pointer<wasm_byte_t> name,
  4. int name_len,
  5. Pointer<wasmtime_module_t> module,
)

\brief Defines automatic instantiations of a #wasm_module_t in this linker.

\param linker the linker the module is being added to \param store the store that is used to instantiate module \param name the name of the module within the linker \param name_len the byte length of name \param module the module that's being instantiated

\return An error if the module could not be instantiated or added or NULL on success.

This function automatically handles Commands and Reactors instantiation and initialization.

For more information see the Rust documentation.

Implementation

@ffi.Native<
  ffi.Pointer<wasmtime_error_t> Function(
    ffi.Pointer<wasmtime_linker_t>,
    ffi.Pointer<wasmtime_context_t>,
    ffi.Pointer<ffi.Char>,
    ffi.Size,
    ffi.Pointer<wasmtime_module_t>,
  )
>()
external ffi.Pointer<wasmtime_error_t> wasmtime_linker_module(
  ffi.Pointer<wasmtime_linker_t> linker,
  ffi.Pointer<wasmtime_context_t> store,
  ffi.Pointer<ffi.Char> name,
  int name_len,
  ffi.Pointer<wasmtime_module_t> module,
);