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