function copyTo
source · line 85public
public fun ByteSource.copyTo(destination: ByteSink, bufferSize: Long = 8192L): Long
Extension receiver: ByteSource
Copies input to a destination and returns actual bytes transferred. Byte-source copies borrow both endpoints; path copies own their temporary handles and honor replaceExisting.
parameter bufferSize
source · line 85public
bufferSize: Long = 8192L
parameter receiver
source · line 85public
ByteSource
parameter destination
source · line 85public
destination: ByteSink