fn expectByte(self: *const @This()) !u8 self: *const @This()1270
1271
1272
1273
1274
1275
1276
1277fn expectByte(self: *const @This()) !u8 {
if (self.cursor < self.input.len) {
return self.input[self.cursor];
}
// No byte.
if (self.is_end_of_input) return error.UnexpectedEndOfInput;
return error.BufferUnderrun;
}