Package io.ktor.utils.io.jvm.nio

Functions

copyTo
Link copied to clipboard
suspend fun ByteReadChannel.copyTo(pipe: Pipe, limit: Long = Long.MAX_VALUE): Long
Copy up to limit bytes to blocking pipe.
suspend fun ByteReadChannel.copyTo(channel: WritableByteChannel, limit: Long = Long.MAX_VALUE): Long
Copy up to limit bytes to blocking NIO channel.
suspend fun Pipe.copyTo(ch: ByteWriteChannel, limit: Long = Long.MAX_VALUE): Long
Copies up to limit bytes from a blocking NIO pipe to CIO ch.
suspend fun ReadableByteChannel.copyTo(ch: ByteWriteChannel, limit: Long = Long.MAX_VALUE): Long
Copies up to limit bytes from blocking NIO channel to CIO ch.