startChunkedConversion method
Start a chunked conversion using the options given to the ZLibEncoder
constructor. While it accepts any Sink taking Listsink
is a ByteConversionSink.
Implementation
ByteConversionSink startChunkedConversion(Sink<List<int>> sink) {
if (sink is! ByteConversionSink) {
sink = new ByteConversionSink.from(sink);
}
return new _ZLibEncoderSink(
sink, gzip, level, windowBits, memLevel, strategy, dictionary, raw);
}