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

Method get_table_mut

crates/tinywasm/src/store/mod.rs:207–215  ·  view source on GitHub ↗

Get the table at the actual index in the store

(&mut self, addr: TableAddr)

Source from the content-addressed store, hash-verified

205
206 /// Get the table at the actual index in the store
207 pub(crate) fn get_table_mut(&mut self, addr: TableAddr) -> &mut TableInstance {
208 match self.tables.get_mut(addr as usize) {
209 Some(table) => table,
210 None => {
211 cold_path();
212 unreachable!("table {addr} not found. This should be unreachable")
213 }
214 }
215 }
216
217 /// Get two mutable tables at the actual index in the store
218 pub(crate) fn get_tables_mut(

Callers 6

instance_mutMethod · 0.80
growMethod · 0.80
exec_table_copyMethod · 0.80
exec_table_setMethod · 0.80
exec_table_growMethod · 0.80
exec_table_fillMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected