run method

Uint8List run()

Implementation

Uint8List run() {
  try {
    while (true) {
      final int last = _bits(1);
      final int type = _bits(2);
      if (type == 0) {
        _copyStored();
      } else if (type == 1) {
        _block(_fixedLiterals, _fixedDistances);
      } else if (type == 2) {
        _dynamicBlock();
      } else {
        throw const UDocParseException("Invalid deflate block type");
      }
      if (last == 1) break;
      if (_pos >= _input.length && _bitCount == 0) break;
    }
  } on UDocParseException {
    _truncated = true;
  }
  return Uint8List.fromList(_out);
}