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

Method get

tests/all/component_model/bindgen.rs:1082–1084  ·  view source on GitHub ↗
(&mut self, key: u32)

Source from the content-addressed store, hash-verified

1080
1081 impl demo::pkg::store::Host for MyHost {
1082 fn get(&mut self, key: u32) -> u32 {
1083 *self.kv.get(&key).unwrap()
1084 }
1085
1086 fn set(&mut self, key: u32, value: u32) {
1087 self.kv.insert(key, value);

Callers 15

drop_delayedFunction · 0.45
signatures_matchFunction · 0.45
trap_smokeFunction · 0.45
new_from_signatureFunction · 0.45
call_wrapped_funcFunction · 0.45
func_return_nothingFunction · 0.45
call_via_funcrefFunction · 0.45
store_with_contextFunction · 0.45
array_get_wrong_storeFunction · 0.45
host_sets_array_globalFunction · 0.45
wasm_sets_array_globalFunction · 0.45

Calls 3

getFunction · 0.50
unwrapMethod · 0.45
pushMethod · 0.45

Tested by 15

signatures_matchFunction · 0.36
call_wrapped_funcFunction · 0.36
store_with_contextFunction · 0.36
table_zeroedFunction · 0.36
atomic_wait_notify_basicFunction · 0.36
i31ref_global_getFunction · 0.36
i31ref_global_setFunction · 0.36