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

Method resolve_mem_addr

crates/tinywasm/src/instance.rs:122–130  ·  view source on GitHub ↗
(&self, addr: MemAddr)

Source from the content-addressed store, hash-verified

120 /// resolve a memory address to the global store address
121 #[inline]
122 pub(crate) fn resolve_mem_addr(&self, addr: MemAddr) -> MemAddr {
123 match self.0.mem_addrs.get(addr as usize) {
124 Some(addr) => *addr,
125 None => {
126 cold_path();
127 unreachable!("invalid memory address: {addr}")
128 }
129 }
130 }
131
132 /// resolve a data address to the global store address
133 #[inline]

Callers 13

exportsMethod · 0.80
exec_fma_storeMethod · 0.80
exec_load_local_valueMethod · 0.80
exec_memory_sizeMethod · 0.80
exec_memory_growMethod · 0.80
exec_memory_copyMethod · 0.80
exec_memory_fill_implMethod · 0.80
exec_memory_initMethod · 0.80
exec_mem_load_laneMethod · 0.80
exec_mem_loadMethod · 0.80
exec_mem_store_laneMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected