startChunkedConversion method

ByteConversionSink startChunkedConversion(Sink<String> sink)

Starts a chunked conversion.

The converter works more efficiently if the given sink is a StringConversionSink.

Source

ByteConversionSink startChunkedConversion(Sink<String> sink) {
  StringConversionSink stringSink;
  if (sink is StringConversionSink) {
    stringSink = sink;
  } else {
    stringSink = new StringConversionSink.from(sink);
  }
  return stringSink.asUtf8Sink(_allowMalformed);
}

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