MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / root

Method root

crates/c-api/include/wasmtime/component/linker.hh:166–170  ·  view source on GitHub ↗

* \brief Gets the "root" instance of this linker which can be used to define * items into the linker under the top-level namespace. * * This `Linker` cannot be used while the returned `LinkerInstance` is in * scope. To use more methods on this `Linker` it's required that the instance * returned here is dropped first. */

Source from the content-addressed store, hash-verified

164 * returned here is dropped first.
165 */
166 LinkerInstance root() {
167 wasmtime_component_linker_instance_t *instance_capi =
168 wasmtime_component_linker_root(ptr.get());
169 return LinkerInstance(instance_capi);
170 }
171
172 /**
173 * \brief Defines all unknown imports of `component` as trapping functions.

Callers 15

create_unitMethod · 0.45
create_vmctx_ptr_dieMethod · 0.45
create_wasm_ptr_dieMethod · 0.45
clone_unitFunction · 0.45
generate_simulated_dwarfFunction · 0.45
add_to_linker_importsMethod · 0.45
add_to_linker_importsMethod · 0.45
add_to_linker_importsMethod · 0.45
add_to_linker_importsMethod · 0.45
add_to_linker_importsMethod · 0.45
add_to_linker_importsMethod · 0.45
add_to_linker_importsMethod · 0.45

Calls 3

LinkerInstanceClass · 0.70
getMethod · 0.45

Tested by 15

add_to_linker_importsMethod · 0.36
add_to_linker_importsMethod · 0.36
add_to_linker_importsMethod · 0.36
add_to_linker_importsMethod · 0.36
add_to_linker_importsMethod · 0.36
add_to_linker_importsMethod · 0.36
add_to_linker_importsMethod · 0.36
add_to_linker_importsMethod · 0.36
add_to_linker_importsMethod · 0.36
add_to_linker_importsMethod · 0.36
add_to_linker_importsMethod · 0.36
add_to_linker_importsMethod · 0.36