readUnsignedByte method

int readUnsignedByte()

Reads and returns an unsigned byte.

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

Implementation

int readUnsignedByte() {
  if (seek + 1 > _source.lengthInBytes) {
    throw EOFException('Attempt to read beyond end of input');
  } else {
    final result = _asByteData.getUint8(seek);
    seek += 1;
    return result;
  }
}