Start a chunked conversion.
Only one object can be passed into the returned sink.
The argument sink
will receive byte lists in sizes depending on the bufferSize
passed to the constructor when creating this encoder.
ChunkedConversionSink<Object> startChunkedConversion(Sink<List<int>> sink) { ByteConversionSink byteSink; if (sink is ByteConversionSink) { byteSink = sink; } else { byteSink = ByteConversionSink.from(sink); } return _JsonUtf8EncoderSink(byteSink, _toEncodable, _indent, _bufferSize); }
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-convert/JsonUtf8Encoder/startChunkedConversion.html