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

Function wasmtime_arrayref_to_eqref

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

Source from the content-addressed store, hash-verified

61
62#[unsafe(no_mangle)]
63pub unsafe extern "C" fn wasmtime_arrayref_to_eqref(
64 arrayref: Option<&wasmtime_arrayref_t>,
65 out: &mut MaybeUninit<wasmtime_eqref_t>,
66) {
67 let eqref = arrayref.and_then(|a| a.as_wasmtime()).map(|a| a.to_eqref());
68 crate::initialize(out, eqref.into());
69}
70
71#[unsafe(no_mangle)]
72pub unsafe extern "C" fn wasmtime_arrayref_len(

Callers 1

to_eqrefMethod · 0.85

Calls 4

as_wasmtimeMethod · 0.80
initializeFunction · 0.70
mapMethod · 0.45
to_eqrefMethod · 0.45

Tested by

no test coverage detected