readBlock16 method

Uint8List readBlock16()

Reads a blocks of data that uses a 16-bit integer as length prefix.

Implementation

Uint8List readBlock16() {
  bytesIO.checkCanRead(2);
  var sz = _bytesData.getUint16(position, Endian.big);
  bytesIO.incrementPosition(2);
  return readBytes(sz);
}