(&mut self, buf: &mut [u8])
| 79 | } |
| 80 | impl std::io::Read for BinaryViewReader<'_> { |
| 81 | fn read(&mut self, buf: &mut [u8]) -> std::io::Result<usize> { |
| 82 | if !self.bv.offset_valid(self.offset) { |
| 83 | return Err(std::io::Error::new(std::io::ErrorKind::UnexpectedEof, "")); |
| 84 | } |
| 85 | let len = self.bv.read(buf, self.offset); |
| 86 | self.offset += u64::try_from(len).unwrap(); |
| 87 | Ok(len) |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | impl std::io::Seek for BinaryViewReader<'_> { |
no test coverage detected