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

ReadableCoroutineByteChannel

interface ReadableCoroutineByteChannel (source)

A co-routine channel that can read bytes.

Functions

read

Reads a sequence of bytes from this channel into the given buffer.

abstract suspend fun read(dst: ByteBuffer): Int

tryRead

Reads a sequence of bytes from this channel into the given buffer, if any bytes are immediately available.

abstract fun tryRead(dst: ByteBuffer): Int

Inheritors

CoroutineByteChannel

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

interface CoroutineByteChannel : ReadableCoroutineByteChannel, WritableCoroutineByteChannel

ScatteringCoroutineByteChannel

A channel that can read bytes into a sequence of buffers.

interface ScatteringCoroutineByteChannel : ReadableCoroutineByteChannel