readUInt16 method

int readUInt16()

Implementation

int readUInt16() {
  ByteData? data = read(2);

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

  return data.getUint16(0, Endian.little);
}