function copyTo
source · line 83public
public suspend fun AsyncByteSource.copyTo(destination: AsyncByteSink, bufferSize: Long = 8192L): Long
Extension receiver: AsyncByteSource
Copies until EOF through a positive-size bounded buffer and returns the transferred byte count. Both endpoints remain borrowed.
parameter receiver
source · line 83public
AsyncByteSource
parameter destination
source · line 83public
destination: AsyncByteSink
parameter bufferSize
source · line 83public
bufferSize: Long = 8192L