MCPcopy Index your code
hub / github.com/explodingcamera/tinywasm / resolve_func_addr

Method resolve_func_addr

crates/tinywasm/src/instance.rs:98–106  ·  view source on GitHub ↗
(&self, addr: FuncAddr)

Source from the content-addressed store, hash-verified

96 /// resolve a function address to the global store address
97 #[inline]
98 pub(crate) fn resolve_func_addr(&self, addr: FuncAddr) -> FuncAddr {
99 match self.0.func_addrs.get(addr as usize) {
100 Some(addr) => *addr,
101 None => {
102 cold_path();
103 unreachable!("invalid function address: {addr}")
104 }
105 }
106 }
107
108 /// resolve a table address to the global store address
109 #[inline]

Callers 5

exportsMethod · 0.80
start_funcMethod · 0.80
execMethod · 0.80
exec_call_directMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected