object Companion
source · line 21public
public companion
Factories that explicitly transfer endpoint cleanup responsibility.
function takeOwnership
source · line 25public
public fun <T> takeOwnership(sink: T, options: CompressionOptions = CompressionOptions.Zstd(ZstdOptions()), bufferSize: Long = 8192L): AsyncCompressionSink where T : AsyncByteSink, T : AsyncCloseable
Creates an adapter that closes the supplied endpoint during its own cleanup.
parameter options
source · line 25public
options: CompressionOptions = CompressionOptions.Zstd(ZstdOptions())
type parameter T
source · line 25public
T
parameter sink
source · line 25public
sink: T
parameter bufferSize
source · line 26public
bufferSize: Long = 8192L