blob: 1b796146f5d49d2a375f049ab1bd4f263e3d06e9 [file] [log] [blame]
* Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
* for details. All rights reserved. Use of this source code is governed by a
* BSD-style license that can be found in the LICENSE file.
* @assertion void add(T chunk)
* Adds chunked data to this sink.
* This method is also used when converters are used as StreamTransformers.
* @description Checks that this method adds data to the [ByteConversionSink]
* @author
import "dart:convert";
import "allTests.lib.dart" as all_tests;
ChunkedConversionSink create(ChunkedConversionSink<List<int>> outSink) {
StringConversionSink inSink = utf8.encoder.startChunkedConversion(outSink);
return utf8.decoder.startChunkedConversion(inSink);
main() {