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