Get the memory at the actual index in the store
(&self, addr: MemAddr)
| 161 | |
| 162 | /// Get the memory at the actual index in the store |
| 163 | pub(crate) fn get_mem(&self, addr: MemAddr) -> &MemoryInstance { |
| 164 | match self.memories.get(addr as usize) { |
| 165 | Some(mem) => mem, |
| 166 | None => { |
| 167 | cold_path(); |
| 168 | unreachable!("memory {addr} not found. This should be unreachable") |
| 169 | } |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | /// Get the memory at the actual index in the store |
| 174 | pub(crate) fn get_mem_mut(&mut self, addr: MemAddr) -> &mut MemoryInstance { |
no test coverage detected