Scoop API

scoop:scoop.compression:0.1.0

compressTo

function compressTo

source · line 11
public
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.