Get the memory at the actual index in the store
(&mut self, addr: MemAddr)
| 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 { |
| 175 | match self.memories.get_mut(addr as usize) { |
| 176 | Some(mem) => mem, |
| 177 | None => { |
| 178 | cold_path(); |
| 179 | unreachable!("memory {addr} not found. This should be unreachable") |
| 180 | } |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | /// Get the memory at the actual index in the store |
| 185 | pub(crate) fn get_mems_mut(&mut self, addr: MemAddr, addr2: MemAddr) -> (&mut MemoryInstance, &mut MemoryInstance) { |
no outgoing calls
no test coverage detected