wasmtime_linker_define_func_unchecked function

  1. @Native<Pointer<wasmtime_error_t> Function(Pointer<wasmtime_linker_t>, Pointer<wasm_byte_t>, Size, Pointer<wasm_byte_t>, Size, Pointer<wasm_functype_t>, wasmtime_func_unchecked_callback_t, Pointer<Void>, Pointer<NativeFunction<Void Function(Pointer<Void>)>>)>(ffi.Pointer<wasmtime_linker_t>, ffi.Pointer<ffi.Char>, ffi.Size, ffi.Pointer<ffi.Char>, ffi.Size, ffi.Pointer<wasm_functype_t>, wasmtime_func_unchecked_callback_t, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.Void>)>>)>()
Pointer<wasmtime_error_t> wasmtime_linker_define_func_unchecked(
  1. Pointer<wasmtime_linker_t> linker,
  2. Pointer<wasm_byte_t> module,
  3. int module_len,
  4. Pointer<wasm_byte_t> name,
  5. int name_len,
  6. Pointer<wasm_functype_t> ty,
  7. wasmtime_func_unchecked_callback_t cb,
  8. Pointer<Void> data,
  9. Pointer<NativeFunction<Void Function(Pointer<Void>)>> finalizer,
)

\brief Defines a new function in this linker.

This is the same as #wasmtime_linker_define_func except that it's the analog of #wasmtime_func_new_unchecked instead of #wasmtime_func_new. Be sure to consult the documentation of #wasmtime_linker_define_func for argument information as well as #wasmtime_func_new_unchecked for why this is an unsafe API.

Implementation

@ffi.Native<
  ffi.Pointer<wasmtime_error_t> Function(
    ffi.Pointer<wasmtime_linker_t>,
    ffi.Pointer<ffi.Char>,
    ffi.Size,
    ffi.Pointer<ffi.Char>,
    ffi.Size,
    ffi.Pointer<wasm_functype_t>,
    wasmtime_func_unchecked_callback_t,
    ffi.Pointer<ffi.Void>,
    ffi.Pointer<ffi.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.Void>)>>,
  )
>()
external ffi.Pointer<wasmtime_error_t> wasmtime_linker_define_func_unchecked(
  ffi.Pointer<wasmtime_linker_t> linker,
  ffi.Pointer<ffi.Char> module,
  int module_len,
  ffi.Pointer<ffi.Char> name,
  int name_len,
  ffi.Pointer<wasm_functype_t> ty,
  wasmtime_func_unchecked_callback_t cb,
  ffi.Pointer<ffi.Void> data,
  ffi.Pointer<ffi.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.Void>)>>
  finalizer,
);