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

Method resolve_data_addr

crates/tinywasm/src/instance.rs:134–142  ·  view source on GitHub ↗
(&self, addr: DataAddr)

Source from the content-addressed store, hash-verified

132 /// resolve a data address to the global store address
133 #[inline]
134 pub(crate) fn resolve_data_addr(&self, addr: DataAddr) -> DataAddr {
135 match self.0.data_addrs.get(addr as usize) {
136 Some(addr) => *addr,
137 None => {
138 cold_path();
139 unreachable!("invalid data address: {addr}")
140 }
141 }
142 }
143
144 /// resolve an element address to the global store address
145 #[inline]

Callers 2

execMethod · 0.80
exec_memory_initMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected