readUInt8 method

int readUInt8()

Implementation

int readUInt8() {
  ByteData? data = read(1);

  if (data == null) {
    throw 'no more data';
  }

  return data.getUint8(0);
}