Lz4Codec constructor
Lz4Codec({
- int level = Lz4Option.defaultLevel,
- bool fastAcceleration = false,
- bool contentChecksum = false,
- bool blockChecksum = false,
- bool blockLinked = true,
- int blockSize = Lz4Option.defaultBlockSize,
- bool optimizeForDecompression = false,
- int inputBufferLength = CodecBufferHolder.autoLength,
- 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);
}