readUnsignedByte method

Future<int> readUnsignedByte()

Reads and returns an unsigned byte.

Throws EOFException if EOF is reached before the needed byte is read.

Implementation

Future<int> readUnsignedByte() async {
  await _ensureNext();
  return _curr![_pos++];
}