(&mut self)
| 148 | |
| 149 | impl BytecodeStream for SafeBytecodeStream<'_> { |
| 150 | fn read<const N: usize>(&mut self) -> Result<[u8; N], Self::Error> { |
| 151 | let (bytes, rest) = self |
| 152 | .bytecode |
| 153 | .split_first_chunk() |
| 154 | .ok_or_else(|| self.unexpected_eof())?; |
| 155 | self.bytecode = rest; |
| 156 | self.position += N; |
| 157 | Ok(*bytes) |
| 158 | } |
| 159 | |
| 160 | type Error = DecodingError; |
| 161 |
no test coverage detected