ZstdCodec constructor

ZstdCodec({
  1. int level = ZstdOption.defaultLevel,
  2. int inputBufferLength = CodecBufferHolder.autoLength,
  3. int outputBufferLength = CodecBufferHolder.autoLength,
})

Construct an ZstdCodec that is configured with the following parameters.

Default values are provided for unspecified parameters. Validation is performed which may result in throwing a RangeError or ArgumentError

Implementation

ZstdCodec(
    {this.level = ZstdOption.defaultLevel,
    this.inputBufferLength = CodecBufferHolder.autoLength,
    this.outputBufferLength = CodecBufferHolder.autoLength}) {
  validateZstdLevel(level);
}