wasmtime_linker_define function

  1. @Native<Pointer<wasmtime_error_t> Function(Pointer<wasmtime_linker_t>, Pointer<wasmtime_context_t>, Pointer<wasm_byte_t>, Size, Pointer<wasm_byte_t>, Size, Pointer<wasmtime_extern_t>)>(ffi.Pointer<wasmtime_linker_t>, ffi.Pointer<wasmtime_context_t>, ffi.Pointer<ffi.Char>, ffi.Size, ffi.Pointer<ffi.Char>, ffi.Size, ffi.Pointer<wasmtime_extern_t>)>()
Pointer<wasmtime_error_t> wasmtime_linker_define(
  1. Pointer<wasmtime_linker_t> linker,
  2. Pointer<wasmtime_context_t> store,
  3. Pointer<wasm_byte_t> module,
  4. int module_len,
  5. Pointer<wasm_byte_t> name,
  6. int name_len,
  7. Pointer<wasmtime_extern_t> item,
)

\brief Defines a new item in this linker.

\param linker the linker the name is being defined in. \param store the store that the item is owned by. \param module the module name the item is defined under. \param module_len the byte length of module \param name the field name the item is defined under \param name_len the byte length of name \param item the item that is being defined in this linker.

\return On success NULL is returned, otherwise an error is returned which describes why the definition failed.

For more information about name resolution consult 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<ffi.Char>,
    ffi.Size,
    ffi.Pointer<wasmtime_extern_t>,
  )
>()
external ffi.Pointer<wasmtime_error_t> wasmtime_linker_define(
  ffi.Pointer<wasmtime_linker_t> linker,
  ffi.Pointer<wasmtime_context_t> store,
  ffi.Pointer<ffi.Char> module,
  int module_len,
  ffi.Pointer<ffi.Char> name,
  int name_len,
  ffi.Pointer<wasmtime_extern_t> item,
);