Lz4Codec constructor

Lz4Codec({
  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 = CodecBufferHolder.autoLength,
  9. int outputBufferLength = CodecBufferHolder.autoLength,
})

Construct an Lz4Codec 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

Lz4Codec(
    {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 = CodecBufferHolder.autoLength,
    this.outputBufferLength = CodecBufferHolder.autoLength}) {
  validateLz4Level(level);
  validateLz4BlockSize(blockSize);
}