Scoop API

scoop:scoop.compression:0.1.0

Companion

object Companion

source · line 19
public
public companion

Factories that explicitly transfer endpoint cleanup responsibility.

function takeOwnership

source · line 23
public
public fun <T> takeOwnership(sink: T, options: CompressionOptions = CompressionOptions.Zstd(ZstdOptions()), bufferSize: Long = 8192L): CompressionSink where T : ByteSink, T : Closeable

Creates an adapter that closes the supplied endpoint during its own cleanup.