W3cubDocs

/Dart 2

startChunkedConversion method

ByteConversionSink startChunkedConversion (Sink<String> sink)

Starts a chunked conversion.

The returned sink serves as input for the long-running conversion. The given sink serves as output.

Implementation

ByteConversionSink startChunkedConversion(Sink<String> sink) {
  if (sink is StringConversionSink) {
    return new _Utf8Base64EncoderSink(sink.asUtf8Sink(false), _urlSafe);
  }
  return new _AsciiBase64EncoderSink(sink, _urlSafe);
}

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