Get the table at the actual index in the store
(&self, addr: TableAddr)
| 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 { |
no test coverage detected