wasmtime_component_linker_instantiate function
- @Native<Pointer<
wasmtime_error_t> Function(Pointer<wasmtime_component_linker_t> linker, Pointer<wasmtime_context_t> context, Pointer<wasmtime_component_t> component, Pointer<wasmtime_component_instance_t> instance_out)>(ffi.Pointer<wasmtime_component_linker_t>, ffi.Pointer<wasmtime_context_t>, ffi.Pointer<wasmtime_component_t>, ffi.Pointer<wasmtime_component_instance_t>)>()
- Pointer<
wasmtime_component_linker_t> linker, - Pointer<
wasmtime_context_t> context, - Pointer<
wasmtime_component_t> component, - Pointer<
wasmtime_component_instance_t> instance_out,
\brief Instantiates a component instance in a given #wasmtime_context_t
\param linker a #wasmtime_component_linker_t that will help provide host functions \param context the #wasmtime_context_t in which the instance should be created \param component the #wasmtime_component_t to instantiate \param instance_out on success, the instantiated #wasmtime_component_instance_t
\return wasmtime_error_t* on success NULL is returned, otherwise an error
is returned which describes why the build failed.
Implementation
@ffi.Native<
ffi.Pointer<wasmtime_error_t> Function(
ffi.Pointer<wasmtime_component_linker_t>,
ffi.Pointer<wasmtime_context_t>,
ffi.Pointer<wasmtime_component_t>,
ffi.Pointer<wasmtime_component_instance_t>,
)
>()
external ffi.Pointer<wasmtime_error_t> wasmtime_component_linker_instantiate(
ffi.Pointer<wasmtime_component_linker_t> linker,
ffi.Pointer<wasmtime_context_t> context,
ffi.Pointer<wasmtime_component_t> component,
ffi.Pointer<wasmtime_component_instance_t> instance_out,
);