简易解码器构造函数

简易解码器(
  1. {整数 level = ZLibOption.defaultLevel,
  2. 整数 windowBits = ZLibOption.defaultWindowBits,
  3. 整数 memLevel = ZLibOption.defaultMemLevel,
  4. 整数 strategy = ZLibOption.strategyDefault,
  5. 列表<整数>? dictionary,
  6. 布尔值 raw = false,
  7. 布尔值 gzip = true}
)

实现

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