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

Method get

crates/c-api/include/wasmtime/arrayref.hh:29–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29inline Result<Val> ArrayRef::get(Store::Context cx, uint32_t index) const {
30 wasmtime_val_t out;
31 auto *err = wasmtime_arrayref_get(cx.capi(), &raw, index, &out);
32 if (err)
33 return Result<Val>(Error(err));
34 return Result<Val>(Val(out));
35}
36
37inline Result<std::monostate> ArrayRef::set(Store::Context cx, uint32_t index,
38 const Val &value) const {

Callers 15

importsMethod · 0.45
exportsMethod · 0.45
serializeMethod · 0.45
capiFunction · 0.45
nameFunction · 0.45
helpers.hhFile · 0.45
operator==Function · 0.45
argvMethod · 0.45
inherit_argvMethod · 0.45
envMethod · 0.45
inherit_envMethod · 0.45
stdin_fileMethod · 0.45

Calls 4

wasmtime_arrayref_getFunction · 0.85
ErrorClass · 0.70
ValClass · 0.70
capiMethod · 0.45

Tested by

no test coverage detected