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

Function wasm_module_share

crates/c-api/src/module.rs:91–95  ·  view source on GitHub ↗
(module: &wasm_module_t)

Source from the content-addressed store, hash-verified

89
90#[unsafe(no_mangle)]
91pub extern "C" fn wasm_module_share(module: &wasm_module_t) -> Box<wasm_shared_module_t> {
92 Box::new(wasm_shared_module_t {
93 module: module.module.clone(),
94 })
95}
96
97#[unsafe(no_mangle)]
98pub unsafe extern "C" fn wasm_module_obtain(

Callers 1

mainFunction · 0.85

Calls 2

newFunction · 0.50
cloneMethod · 0.45

Tested by

no test coverage detected