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

Method instance_mut

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

Source from the content-addressed store, hash-verified

193
194 #[inline]
195 fn instance_mut<'a>(&self, store: &'a mut Store) -> Result<&'a mut MemoryInstance> {
196 self.0.validate_store(store)?;
197 Ok(store.state.get_mem_mut(self.0.addr))
198 }
199
200 /// Returns the raw memory byte length.
201 pub fn len(&self, store: &Store) -> Result<usize> {

Callers 7

cursor_atMethod · 0.80
writeMethod · 0.80
growMethod · 0.80
copy_withinMethod · 0.80
fillMethod · 0.80
copy_from_sliceMethod · 0.80
setMethod · 0.80

Calls 4

get_mem_mutMethod · 0.80
get_table_mutMethod · 0.80
get_global_mutMethod · 0.80
validate_storeMethod · 0.45

Tested by

no test coverage detected