(&self)
| 102 | [self.data1, self.data2].concat() |
| 103 | } |
| 104 | pub fn chunk(&self) -> &'a [u8] { |
| 105 | self.data1.get(..CHUNKSIZE).unwrap_or(self.data1) |
| 106 | } |
| 107 | pub fn advance(&mut self, consumed: usize) { |
| 108 | self.data1 = &self.data1[consumed..]; |
| 109 | if self.data1.is_empty() { |
no test coverage detected