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

WritableCoroutineByteChannel

interface WritableCoroutineByteChannel (source)

A co-routine channel that can write bytes.

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

CoroutineByteChannel

interface CoroutineByteChannel : ReadableCoroutineByteChannel, WritableCoroutineByteChannel

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

GatheringCoroutineByteChannel

interface GatheringCoroutineByteChannel : WritableCoroutineByteChannel

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