W3cubDocs

/Dart 2

startChunkedConversion method

ByteConversionSink startChunkedConversion (Sink<List<int>> sink)

Start a chunked conversion. While it accepts any Sink taking List'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);
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-io/ZLibDecoder/startChunkedConversion.html