interface GatheringCoroutineByteChannel : WritableCoroutineByteChannel
(source)
A channel that can write bytes from a sequence of buffers.
Author
Chris Leishman - https://cleishm.github.io/
abstract fun tryWrite(srcs: Array<ByteBuffer>, offset: Int = 0, length: Int = srcs.size): Long
Writes a sequence of bytes to this channel from a subsequence of the given buffers, if the channel is ready for writing. |
|
abstract suspend fun write(srcs: Array<ByteBuffer>, offset: Int = 0, length: Int = srcs.size): Long
Writes a sequence of bytes to this channel from a subsequence of the given buffers. |
abstract fun tryWrite(src: ByteBuffer): Int
Writes a sequence of bytes to this channel from the given buffer, if the channel is ready for writing. |
|
abstract suspend fun write(src: ByteBuffer): Int
Writes a sequence of bytes to this channel from the given buffer. |
class CoroutineDatagramChannel : CoroutineByteChannel, ScatteringCoroutineByteChannel, GatheringCoroutineByteChannel, CoroutineNetworkChannel
A co-routine based datagram-oriented network channel. |
|
class CoroutineSocketChannel : CoroutineByteChannel, ScatteringCoroutineByteChannel, GatheringCoroutineByteChannel, CoroutineNetworkChannel
A co-routine based stream-oriented network channel. |