startChunkedConversion method

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

Start a chunked conversion. While it accepts any Sink taking List<int>'s, the optimal sink to be passed as sink is a ByteConversionSink.

Implementation

ByteConversionSink startChunkedConversion(Sink<List<int>> sink) {
  if (sink is! ByteConversionSink) {
    sink = new ByteConversionSink.from(sink);
  }
  return new _ZLibDecoderSink._(sink, windowBits, dictionary, raw);
}