startChunkedConversion method

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

Starts a chunked conversion.

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

Source

StringConversionSink startChunkedConversion(Sink<List<int>> sink) {
  if (sink is! ByteConversionSink) {
    sink = new ByteConversionSink.from(sink);
  }
  return new _Utf8EncoderSink(sink);
}

© 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/Utf8Encoder/startChunkedConversion.html