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

Method instance

crates/tinywasm/src/reference.rs:189–192  ·  view source on GitHub ↗
(&self, store: &'a Store)

Source from the content-addressed store, hash-verified

187
188 #[inline]
189 fn instance<'a>(&self, store: &'a Store) -> Result<&'a MemoryInstance> {
190 self.0.validate_store(store)?;
191 Ok(store.state.get_mem(self.0.addr))
192 }
193
194 #[inline]
195 fn instance_mut<'a>(&self, store: &'a mut Store) -> Result<&'a mut MemoryInstance> {

Callers 11

lenMethod · 0.80
tyMethod · 0.80
readMethod · 0.80
read_exactMethod · 0.80
read_vecMethod · 0.80
page_countMethod · 0.80
fillMethod · 0.80
copy_from_sliceMethod · 0.80
sizeMethod · 0.80
getMethod · 0.80
loadMethod · 0.80

Calls 4

get_memMethod · 0.80
get_tableMethod · 0.80
get_globalMethod · 0.80
validate_storeMethod · 0.45

Tested by

no test coverage detected