Attempts to claim one byte out of `input`.
(input: &mut &[u8])
| 13 | |
| 14 | /// Attempts to claim one byte out of `input`. |
| 15 | pub fn consume_byte(input: &mut &[u8]) -> Result<u8> { |
| 16 | Ok(consume_bytes(input, 1)?[0]) |
| 17 | } |
| 18 | |
| 19 | /// Like `consume_bytes` but consumes `[u8; N]` instead of `u8`. |
| 20 | pub fn consume_byte_arrays<'a, const N: usize>( |
no test coverage detected