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

Method get_table

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

Get the table at the actual index in the store

(&self, addr: TableAddr)

Source from the content-addressed store, hash-verified

194
195 /// Get the table at the actual index in the store
196 pub(crate) fn get_table(&self, addr: TableAddr) -> &TableInstance {
197 match self.tables.get(addr as usize) {
198 Some(table) => table,
199 None => {
200 cold_path();
201 unreachable!("table {addr} not found. This should be unreachable")
202 }
203 }
204 }
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 {

Callers 5

instanceMethod · 0.80
linkMethod · 0.80
exec_call_indirectMethod · 0.80
exec_table_getMethod · 0.80
exec_table_sizeMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected