BrotliCodec constructor
BrotliCodec({
- int level = BrotliOption.defaultLevel,
- int mode = BrotliOption.defaultMode,
- int windowBits = BrotliOption.defaultWindowBits,
- int? blockBits,
- int? postfixBits,
- bool literalContextModeling = true,
- int sizeHint = 0,
- bool largeWindow = false,
- int? directDistanceCodeCount,
- bool ringBufferReallocation = true,
- int inputBufferLength = CodecBufferHolder.autoLength,
- int outputBufferLength = CodecBufferHolder.autoLength,
Construct an BrotliCodec 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
BrotliCodec(
{this.level = BrotliOption.defaultLevel,
this.mode = BrotliOption.defaultMode,
this.windowBits = BrotliOption.defaultWindowBits,
this.blockBits,
this.postfixBits,
this.literalContextModeling = true,
this.sizeHint = 0,
this.largeWindow = false,
this.directDistanceCodeCount,
this.ringBufferReallocation = true,
this.inputBufferLength = CodecBufferHolder.autoLength,
this.outputBufferLength = CodecBufferHolder.autoLength}) {
validateBrotliLevel(level);
validateBrotliWindowBits(windowBits);
validateBrotliBlockBits(blockBits);
validateBrotliPostfixBits(postfixBits);
}