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

Function wasmtime_linker_instantiate

crates/c-api/src/linker.rs:137–146  ·  view source on GitHub ↗
(
    linker: &wasmtime_linker_t,
    store: WasmtimeStoreContextMut<'_>,
    module: &wasmtime_module_t,
    instance_ptr: &mut Instance,
    trap_ptr: &mut *mut wasm_trap_t,
)

Source from the content-addressed store, hash-verified

135
136#[unsafe(no_mangle)]
137pub extern "C" fn wasmtime_linker_instantiate(
138 linker: &wasmtime_linker_t,
139 store: WasmtimeStoreContextMut<'_>,
140 module: &wasmtime_module_t,
141 instance_ptr: &mut Instance,
142 trap_ptr: &mut *mut wasm_trap_t,
143) -> Option<Box<wasmtime_error_t>> {
144 let result = linker.linker.instantiate(store, &module.module);
145 super::instance::handle_instantiate(result, instance_ptr, trap_ptr)
146}
147
148#[unsafe(no_mangle)]
149pub unsafe extern "C" fn wasmtime_linker_instantiate_pre(

Callers 2

mainFunction · 0.85
instantiateMethod · 0.85

Calls 2

handle_instantiateFunction · 0.85
instantiateMethod · 0.45

Tested by

no test coverage detected