RawZLibFilter.deflateFilter 构造函数

RawZLibFilter.deflateFilter(
  1. {bool gzip = false,
  2. int level = ZLibOption.defaultLevel,
  3. int windowBits = ZLibOption.defaultWindowBits,
  4. int memLevel = ZLibOption.defaultMemLevel,
  5. int strategy = ZLibOption.strategyDefault,
  6. List<int>? dictionary,
  7. bool raw = false}
)

返回一个 RawZLibFilter 对象,该对象的 process 和 processed 方法用于压缩数据。

实现

factory RawZLibFilter.deflateFilter({
  bool gzip = false,
  int level = ZLibOption.defaultLevel,
  int windowBits = ZLibOption.defaultWindowBits,
  int memLevel = ZLibOption.defaultMemLevel,
  int strategy = ZLibOption.strategyDefault,
  List<int>? dictionary,
  bool raw = false,
}) {
  return _makeZLibDeflateFilter(
      gzip, level, windowBits, memLevel, strategy, dictionary, raw);
}