Lz4Encoder constructor

Lz4Encoder({
  1. int level = Lz4Option.defaultLevel,
  2. bool fastAcceleration = false,
  3. bool contentChecksum = false,
  4. bool blockChecksum = false,
  5. bool blockLinked = true,
  6. int blockSize = Lz4Option.defaultBlockSize,
  7. bool optimizeForDecompression = false,
  8. int inputBufferLength = lz4EncoderInputBufferLength,
  9. int outputBufferLength = lz4EncoderOutputBufferLength,
})

Construct an Lz4Encoder with the supplied parameters used by the Lz4 encoder.

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

Implementation

Lz4Encoder(
    {this.level = Lz4Option.defaultLevel,
    this.fastAcceleration = false,
    this.contentChecksum = false,
    this.blockChecksum = false,
    this.blockLinked = true,
    this.blockSize = Lz4Option.defaultBlockSize,
    this.optimizeForDecompression = false,
    this.inputBufferLength = lz4EncoderInputBufferLength,
    this.outputBufferLength = lz4EncoderOutputBufferLength}) {
  validateLz4Level(level);
  validateLz4BlockSize(blockSize);
}