wasmtime_component_instance_get_func function
- @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>)>()
- Pointer<
wasmtime_component_instance_t> instance, - Pointer<
wasmtime_context_t> context, - Pointer<
wasmtime_component_export_index_t> export_index, - 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,
);