net-coroutines / org.apache.tuweni.net.coroutines / GatheringCoroutineByteChannel

GatheringCoroutineByteChannel

interface GatheringCoroutineByteChannel : WritableCoroutineByteChannel (source)

A channel that can write bytes from a sequence of buffers.

Functions

tryWrite

Writes a sequence of bytes to this channel from a subsequence of the given buffers, if the channel is ready for writing.

abstract fun tryWrite(srcs: Array<ByteBuffer>, offset: Int = 0, length: Int = srcs.size): Long

write

Writes a sequence of bytes to this channel from a subsequence of the given buffers.

abstract suspend fun write(srcs: Array<ByteBuffer>, offset: Int = 0, length: Int = srcs.size): Long

Inheritors

CoroutineDatagramChannel

A co-routine based datagram-oriented network channel.

class CoroutineDatagramChannel : CoroutineByteChannel, ScatteringCoroutineByteChannel, GatheringCoroutineByteChannel, CoroutineNetworkChannel

CoroutineSocketChannel

A co-routine based stream-oriented network channel.

class CoroutineSocketChannel : CoroutineByteChannel, ScatteringCoroutineByteChannel, GatheringCoroutineByteChannel, CoroutineNetworkChannel