Scoop API

scoop:scoop.platform:0.1.0

copyTo

function copyTo

source · line 85
public
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.