(&mut self, size: usize)
| 172 | /// Reads and returns a byte slice of `.len() = size` advancing the cursor. |
| 173 | #[inline] |
| 174 | fn get_slice(&mut self, size: usize) -> Result<&'de [u8], DecodeError> { |
| 175 | self.get_chunk(size).ok_or_else(|| DecodeError::BufferLength { |
| 176 | for_type: "[u8]", |
| 177 | expected: size, |
| 178 | given: self.remaining(), |
| 179 | }) |
| 180 | } |
| 181 | |
| 182 | /// Reads an array of type `[u8; N]` from the input. |
| 183 | #[inline] |