object Companion
source · line 92public
public companion
Factories with explicit underlying-endpoint ownership transfer.
function takeOwnership
source · line 96public
public fun <T> takeOwnership(sink: T, capacity: Long = 8192L): BufferedSink where T : ByteSink, T : Closeable
Creates a buffer that assumes close responsibility for the underlying sink.
parameter sink
source · line 96public
sink: T
type parameter T
source · line 96public
T
parameter capacity
source · line 96public
capacity: Long = 8192L