(&mut self)
| 51 | } |
| 52 | |
| 53 | pub fn read_int(&mut self) -> Option<u64> { |
| 54 | match self.source.next_token() { |
| 55 | Some(Token::Int(i)) => Some(i), |
| 56 | Some(other) => panic!("Expected Integer, got {other:?}"), |
| 57 | None => None, |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | pub fn set_source(&mut self, source: Bytes, offset: usize) { |
| 62 | self.source.set_source(source, offset) |