object Companion
source · line 19public
public companion
Factories that explicitly transfer endpoint cleanup responsibility.
function takeOwnership
source · line 23public
public fun <T> takeOwnership(source: T, options: CompressionOptions = CompressionOptions.Zstd(ZstdOptions()), bufferSize: Long = 8192L): CompressionSource where T : ByteSource, T : Closeable
Creates an adapter that closes the supplied endpoint during its own cleanup.
parameter options
source · line 23public
options: CompressionOptions = CompressionOptions.Zstd(ZstdOptions())
parameter bufferSize
source · line 24public
bufferSize: Long = 8192L
type parameter T
source · line 23public
T
parameter source
source · line 23public
source: T