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

Method resolve_table_addr

crates/tinywasm/src/instance.rs:110–118  ·  view source on GitHub ↗
(&self, addr: TableAddr)

Source from the content-addressed store, hash-verified

108 /// resolve a table address to the global store address
109 #[inline]
110 pub(crate) fn resolve_table_addr(&self, addr: TableAddr) -> TableAddr {
111 match self.0.table_addrs.get(addr as usize) {
112 Some(addr) => *addr,
113 None => {
114 cold_path();
115 unreachable!("invalid table address: {addr}")
116 }
117 }
118 }
119
120 /// resolve a memory address to the global store address
121 #[inline]

Callers 9

exportsMethod · 0.80
exec_call_indirectMethod · 0.80
exec_table_copyMethod · 0.80
exec_table_getMethod · 0.80
exec_table_setMethod · 0.80
exec_table_sizeMethod · 0.80
exec_table_initMethod · 0.80
exec_table_growMethod · 0.80
exec_table_fillMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected