Starts a chunked conversion.
The converter works more efficiently if the given sink
is a StringConversionSink.
ByteConversionSink startChunkedConversion(Sink<String> sink) { StringConversionSink stringSink; if (sink is StringConversionSink) { stringSink = sink; } else { stringSink = new StringConversionSink.from(sink); } // TODO(lrn): Use stringSink.asUtf16Sink() if it becomes available. if (!_allowInvalid) return new _Latin1DecoderSink(stringSink); return new _Latin1AllowInvalidDecoderSink(stringSink); }
© 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/Latin1Decoder/startChunkedConversion.html