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

GatheringCoroutineByteChannel

interface GatheringCoroutineByteChannel : WritableCoroutineByteChannel (source)

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

Author
Chris Leishman - https://cleishm.github.io/

Functions

tryWrite

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.

write

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.

Inherited Functions

tryWrite

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.

write

abstract suspend fun write(src: ByteBuffer): Int

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

Inheritors

CoroutineDatagramChannel

class CoroutineDatagramChannel : CoroutineByteChannel, ScatteringCoroutineByteChannel, GatheringCoroutineByteChannel, CoroutineNetworkChannel

A co-routine based datagram-oriented network channel.

CoroutineSocketChannel

class CoroutineSocketChannel : CoroutineByteChannel, ScatteringCoroutineByteChannel, GatheringCoroutineByteChannel, CoroutineNetworkChannel

A co-routine based stream-oriented network channel.