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

Function wasmtime_eqref_to_anyref

crates/c-api/src/eqref.rs:16–22  ·  view source on GitHub ↗
(
    eqref: Option<&wasmtime_eqref_t>,
    out: &mut MaybeUninit<wasmtime_anyref_t>,
)

Source from the content-addressed store, hash-verified

14
15#[unsafe(no_mangle)]
16pub unsafe extern "C" fn wasmtime_eqref_to_anyref(
17 eqref: Option<&wasmtime_eqref_t>,
18 out: &mut MaybeUninit<wasmtime_anyref_t>,
19) {
20 let anyref = eqref.and_then(|e| e.as_wasmtime()).map(|e| e.to_anyref());
21 crate::initialize(out, anyref.into());
22}
23
24#[unsafe(no_mangle)]
25pub extern "C" fn wasmtime_eqref_from_i31(

Callers 2

TESTFunction · 0.85
to_anyrefMethod · 0.85

Calls 4

as_wasmtimeMethod · 0.80
initializeFunction · 0.70
mapMethod · 0.45
to_anyrefMethod · 0.45

Tested by 1

TESTFunction · 0.68