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

Function get

cranelift/codegen/src/ir/constant.rs:321–326  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

319
320 #[test]
321 fn get() {
322 let mut sut = ConstantPool::new();
323 let data = vec![1, 2, 3];
324 let handle = sut.insert(data.clone().into());
325 assert_eq!(sut.get(handle), &data.into());
326 }
327
328 #[test]
329 fn set() {

Callers 2

newMethod · 0.50
load_constant_fullMethod · 0.50

Calls 3

newFunction · 0.50
insertMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected