Return the size of ROM in bytes.
(&self)
| 36 | /// Return the size of ROM in bytes. |
| 37 | pub fn size(&self) -> u64 { |
| 38 | self.size |
| 39 | } |
| 40 | |
| 41 | /// Peek at a ROM byte without mutation. |
| 42 | pub fn peek_byte(&self, addr: u64) -> Option<u8> { |
| 43 | self.index(addr).map(|idx| self.data[idx]) |
nothing calls this directly
no outgoing calls
no test coverage detected