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

Method as_array

crates/c-api/include/wasmtime/anyref.hh:40–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 return std::nullopt;
39}
40inline std::optional<ArrayRef> AnyRef::as_array(Store::Context cx) const {
41 wasmtime_arrayref_t out;
42 if (wasmtime_anyref_as_array(cx.capi(), &raw, &out))
43 return ArrayRef(out);
44 return std::nullopt;
45}
46
47} // namespace wasmtime
48

Callers

nothing calls this directly

Calls 3

wasmtime_anyref_as_arrayFunction · 0.85
ArrayRefClass · 0.70
capiMethod · 0.45

Tested by

no test coverage detected