wasmtime_component_linker_instance_add_module function
- @Native<Pointer<
wasmtime_error_t> Function(Pointer<wasmtime_component_linker_instance_t> , Pointer<wasm_byte_t> , Size, Pointer<wasmtime_module_t> )>(ffi.Pointer<wasmtime_component_linker_instance_t>, ffi.Pointer<ffi.Char>, ffi.Size, ffi.Pointer<wasmtime_module_t>)>()
- Pointer<
wasmtime_component_linker_instance_t> linker_instance, - Pointer<
wasm_byte_t> name, - int name_len,
- Pointer<
wasmtime_module_t> module,
\brief Defines a #wasmtime_module_t within this instance.
This can be used to provide a core wasm #wasmtime_module_t as an import to a component. The #wasmtime_module_t provided is saved within the linker for the specified \p name in this instance.
\param linker_instance the instance to define the module in
\param name the module name
\param name_len length of \p name in bytes
\param module the module
\return on success NULL, otherwise an error
Implementation
@ffi.Native<
ffi.Pointer<wasmtime_error_t> Function(
ffi.Pointer<wasmtime_component_linker_instance_t>,
ffi.Pointer<ffi.Char>,
ffi.Size,
ffi.Pointer<wasmtime_module_t>,
)
>()
external ffi.Pointer<wasmtime_error_t>
wasmtime_component_linker_instance_add_module(
ffi.Pointer<wasmtime_component_linker_instance_t> linker_instance,
ffi.Pointer<ffi.Char> name,
int name_len,
ffi.Pointer<wasmtime_module_t> module,
);