Peek at a byte without mutation (for debugging).
(&self, addr: u64)
| 39 | |
| 40 | /// Peek at a byte without mutation (for debugging). |
| 41 | pub fn peek_byte(&self, addr: u64) -> Option<u8> { |
| 42 | self.index(addr).map(|idx| self.data[idx]) |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | impl RamImage for Ram { |