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

Function wasmtime_linker_module

crates/c-api/src/linker.rs:162–172  ·  view source on GitHub ↗
(
    linker: &mut wasmtime_linker_t,
    store: WasmtimeStoreContextMut<'_>,
    name: *const u8,
    name_len: usize,
    module: &wasmtime_module_t,
)

Source from the content-addressed store, hash-verified

160
161#[unsafe(no_mangle)]
162pub unsafe extern "C" fn wasmtime_linker_module(
163 linker: &mut wasmtime_linker_t,
164 store: WasmtimeStoreContextMut<'_>,
165 name: *const u8,
166 name_len: usize,
167 module: &wasmtime_module_t,
168) -> Option<Box<wasmtime_error_t>> {
169 let linker = &mut linker.linker;
170 let name = to_str!(name, name_len);
171 handle_result(linker.module(store, name, &module.module), |_linker| ())
172}
173
174#[unsafe(no_mangle)]
175pub unsafe extern "C" fn wasmtime_linker_get_default(

Callers 2

mainFunction · 0.85
moduleMethod · 0.85

Calls 2

handle_resultFunction · 0.85
moduleMethod · 0.45

Tested by

no test coverage detected