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

Function wasmtime_component_val_new

crates/c-api/src/component/val.rs:371–375  ·  view source on GitHub ↗
(
    src: &mut wasmtime_component_val_t,
)

Source from the content-addressed store, hash-verified

369
370#[unsafe(no_mangle)]
371pub extern "C" fn wasmtime_component_val_new(
372 src: &mut wasmtime_component_val_t,
373) -> Box<wasmtime_component_val_t> {
374 Box::new(mem::replace(src, wasmtime_component_val_t::default()))
375}
376
377#[unsafe(no_mangle)]
378pub extern "C" fn wasmtime_component_val_free(_dst: Option<Box<wasmtime_component_val_t>>) {}

Callers 7

copyMethod · 0.85
copyMethod · 0.85
copyMethod · 0.85
VariantMethod · 0.85
WitOptionMethod · 0.85
okMethod · 0.85
errMethod · 0.85

Calls 2

newFunction · 0.50
replaceFunction · 0.50

Tested by

no test coverage detected