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

Method get_funcref

crates/wasmtime/src/runtime/vm/vmcontext.rs:1744–1747  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1742 /// Gets the WebAssembly `funcref` value
1743 #[inline]
1744 pub fn get_funcref(&self) -> *mut c_void {
1745 let addr = unsafe { usize::from_le(self.funcref.addr()) };
1746 core::ptr::with_exposed_provenance_mut(addr)
1747 }
1748
1749 /// Gets the WebAssembly `externref` value
1750 #[inline]

Callers 2

_from_rawMethod · 0.80
loadMethod · 0.80

Calls 1

addrMethod · 0.45

Tested by

no test coverage detected