startChunkedConversion method

  1. @override
ByteConversionSink startChunkedConversion(
  1. Sink<List<int>> sink
)
override

Start a chunked conversion using the options given to the BrotliEncoder constructor.

While it accepts any Sink taking List's, the optimal sink to be passed as sink is a ByteConversionSink.

Implementation

@override
ByteConversionSink startChunkedConversion(Sink<List<int>> sink) {
  final byteSink = asByteSink(sink);
  return _BrotliEncoderSink._(
      byteSink,
      level,
      mode,
      windowBits,
      blockBits,
      postfixBits,
      literalContextModeling,
      sizeHint,
      largeWindow,
      directDistanceCodeCount,
      inputBufferLength,
      outputBufferLength);
}