readBlock32 method

Uint8List readBlock32()

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

Implementation

Uint8List readBlock32() {
  bytesIO.checkCanRead(4);
  var sz = _bytesData.getUint32(position, Endian.big);
  bytesIO.incrementPosition(4);
  return readBytes(sz);
}