startChunkedConversion method

  1. @override
ByteConversionSink startChunkedConversion(
  1. Sink<List<int>> sink
)
override

Start a chunked conversion using the options given to the Lz4Decoder constructor.

While it accepts any Sink taking List's, the optimal sink to be passed as sink is a ByteConversionSink.

Implementation

@override
ByteConversionSink startChunkedConversion(Sink<List<int>> sink) {
  final byteSink = asByteSink(sink);
  return _Lz4DecoderSink._(byteSink, inputBufferLength, outputBufferLength);
}