ZstdEncoder constructor

ZstdEncoder({
  1. int level = ZstdOption.defaultLevel,
  2. int inputBufferLength = zstdEncoderInputBufferLength,
  3. int outputBufferLength = zstdEncoderOutputBufferLength,
})

Construct an ZstdEncoder with the supplied parameters used by the Zstd encoder.

Validation will be performed which may result in a RangeError or ArgumentError.

Implementation

ZstdEncoder(
    {this.level = ZstdOption.defaultLevel,
    this.inputBufferLength = zstdEncoderInputBufferLength,
    this.outputBufferLength = zstdEncoderOutputBufferLength}) {
  validateZstdLevel(level);
}