(&self, bytes: &[u8])
| 229 | } |
| 230 | |
| 231 | fn check_bytes(&self, bytes: &[u8]) -> bool { |
| 232 | self.data |
| 233 | .get(self.position..self.position + bytes.len()) |
| 234 | .map_or(false, |d| d == bytes) |
| 235 | } |
| 236 | |
| 237 | fn consume_bytes(&mut self, bytes: &[u8]) -> bool { |
| 238 | if self.check_bytes(bytes) { |
no test coverage detected