startChunkedConversion method

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

Start a chunked conversion using the options given to the Lz4Encoder 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 _Lz4EncoderSink._(
      byteSink,
      level,
      fastAcceleration,
      contentChecksum,
      blockChecksum,
      blockLinked,
      blockSize,
      optimizeForDecompression,
      inputBufferLength,
      outputBufferLength);
}