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

WritableCoroutineByteChannel

interface WritableCoroutineByteChannel (source)

A co-routine channel that can write bytes.

Functions

tryWrite

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

abstract fun tryWrite(src: ByteBuffer): Int

write

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

abstract suspend fun write(src: ByteBuffer): Int

Inheritors

CoroutineByteChannel

A co-routine channel that can read and write bytes.

interface CoroutineByteChannel : ReadableCoroutineByteChannel, WritableCoroutineByteChannel

GatheringCoroutineByteChannel

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

interface GatheringCoroutineByteChannel : WritableCoroutineByteChannel