interface ReadableCoroutineByteChannel
(source)
A co-routine channel that can read bytes.
abstract suspend fun read(dst: ByteBuffer): Int
Reads a sequence of bytes from this channel into the given buffer. |
|
abstract fun tryRead(dst: ByteBuffer): Int
Reads a sequence of bytes from this channel into the given buffer, if any bytes are immediately available. |
interface CoroutineByteChannel : ReadableCoroutineByteChannel, WritableCoroutineByteChannel
A co-routine channel that can read and write bytes. |
|
interface ScatteringCoroutineByteChannel : ReadableCoroutineByteChannel
A channel that can read bytes into a sequence of buffers. |