BrotliEncoder constructor
BrotliEncoder({
- 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,
- int inputBufferLength = CodecBufferHolder.autoLength,
- int outputBufferLength = CodecBufferHolder.autoLength,
Construct an BrotliEncoder with the supplied parameters used by the Brotli encoder.
Validation will be performed which may result in a RangeError or ArgumentError.
Implementation
BrotliEncoder(
{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.inputBufferLength = CodecBufferHolder.autoLength,
this.outputBufferLength = CodecBufferHolder.autoLength}) {
validateBrotliLevel(level);
validateBrotliWindowBits(windowBits);
validateBrotliBlockBits(blockBits);
validateBrotliPostfixBits(postfixBits);
}