function compressTo
source · line 11public
public fun ByteSource.compressTo(destination: ByteSink, options: CompressionOptions = CompressionOptions.Zstd(ZstdOptions()), bufferSize: Long = 8192L): CompressionTotals
Extension receiver: ByteSource
Copies a byte source through an encoder into the destination, finishes it, and returns actual byte totals. The source and destination remain borrowed.
parameter options
source · line 11public
options: CompressionOptions = CompressionOptions.Zstd(ZstdOptions())
parameter receiver
source · line 11public
ByteSource
parameter destination
source · line 11public
destination: ByteSink
parameter bufferSize
source · line 12public
bufferSize: Long = 8192L