(&self, addr: usize, dst: &mut [u8])
| 67 | |
| 68 | #[inline(always)] |
| 69 | fn read_exact(&self, addr: usize, dst: &mut [u8]) -> Option<()> { |
| 70 | dst.copy_from_slice(self.data.get(addr..addr.checked_add(dst.len())?)?); |
| 71 | Some(()) |
| 72 | } |
| 73 | |
| 74 | #[inline(always)] |
| 75 | fn read_vec(&self, addr: usize, len: usize) -> Option<Vec<u8>> { |