ZLibCodec 构造函数

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

实现

ZLibCodec(
    {this.level = ZLibOption.defaultLevel,
    this.windowBits = ZLibOption.defaultWindowBits,
    this.memLevel = ZLibOption.defaultMemLevel,
    this.strategy = ZLibOption.strategyDefault,
    this.dictionary,
    this.raw = false,
    this.gzip = false}) {
  _validateZLibeLevel(level);
  _validateZLibMemLevel(memLevel);
  _validateZLibStrategy(strategy);
  _validateZLibWindowBits(windowBits);
}