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

Function wasmtime_arrayref_to_anyref

crates/c-api/src/arrayref.rs:52–60  ·  view source on GitHub ↗
(
    arrayref: Option<&wasmtime_arrayref_t>,
    out: &mut MaybeUninit<wasmtime_anyref_t>,
)

Source from the content-addressed store, hash-verified

50
51#[unsafe(no_mangle)]
52pub unsafe extern "C" fn wasmtime_arrayref_to_anyref(
53 arrayref: Option<&wasmtime_arrayref_t>,
54 out: &mut MaybeUninit<wasmtime_anyref_t>,
55) {
56 let anyref = arrayref
57 .and_then(|a| a.as_wasmtime())
58 .map(|a| a.to_anyref());
59 crate::initialize(out, anyref.into());
60}
61
62#[unsafe(no_mangle)]
63pub unsafe extern "C" fn wasmtime_arrayref_to_eqref(

Callers 1

to_anyrefMethod · 0.85

Calls 4

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

Tested by

no test coverage detected