wasmtime_component_instance_get_func function

  1. @Native<Bool Function(Pointer<wasmtime_component_instance_t>, Pointer<wasmtime_context_t>, Pointer<wasmtime_component_export_index_t>, Pointer<wasmtime_component_func_t>)>(ffi.Pointer<wasmtime_component_instance_t>, ffi.Pointer<wasmtime_context_t>, ffi.Pointer<wasmtime_component_export_index_t>, ffi.Pointer<wasmtime_component_func_t>)>()
bool wasmtime_component_instance_get_func(
  1. Pointer<wasmtime_component_instance_t> instance,
  2. Pointer<wasmtime_context_t> context,
  3. Pointer<wasmtime_component_export_index_t> export_index,
  4. Pointer<wasmtime_component_func_t> func_out,
)

\brief Looks up an exported function by name within this #wasmtime_component_instance_t.

\param instance the instance to look up this name in \param context the store that \p instance lives in \param export_index the export index of the function \param func_out if found, the function corresponding to \p name \return boolean marking if a function for \p name was found

Implementation

@ffi.Native<
  ffi.Bool Function(
    ffi.Pointer<wasmtime_component_instance_t>,
    ffi.Pointer<wasmtime_context_t>,
    ffi.Pointer<wasmtime_component_export_index_t>,
    ffi.Pointer<wasmtime_component_func_t>,
  )
>()
external bool wasmtime_component_instance_get_func(
  ffi.Pointer<wasmtime_component_instance_t> instance,
  ffi.Pointer<wasmtime_context_t> context,
  ffi.Pointer<wasmtime_component_export_index_t> export_index,
  ffi.Pointer<wasmtime_component_func_t> func_out,
);