function compressTo
source · line 10public
public suspend fun AsyncByteSource.compressTo(destination: AsyncByteSink, options: CompressionOptions = CompressionOptions.Zstd(ZstdOptions()), bufferSize: Long = 8192L): CompressionTotals
Extension receiver: AsyncByteSource
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 10public
AsyncByteSource
parameter bufferSize
source · line 11public
bufferSize: Long = 8192L
parameter destination
source · line 10public
destination: AsyncByteSink