ByteChannelSequentialJVM

class ByteChannelSequentialJVM(initial: <Error class: unknown class>, autoFlush: Boolean)

Constructors

Link copied to clipboard
constructor(initial: <Error class: unknown class>, autoFlush: Boolean)

Functions

Link copied to clipboard
open fun attachJob(job: Job)
Link copied to clipboard
open suspend fun awaitContent()

Suspend until the channel has bytes to read or gets closed. Throws exception if the channel was closed with an error.

Link copied to clipboard
open fun <R> lookAhead(visitor: LookAheadSession.() -> R): R
Link copied to clipboard
open suspend fun <R> lookAheadSuspend(visitor: suspend LookAheadSuspendSession.() -> R): R
Link copied to clipboard
open suspend fun read(min: Int, consumer: (ByteBuffer) -> Unit)
Link copied to clipboard
open suspend fun readAvailable(dst: ByteBuffer): Int
open fun readAvailable(min: Int, block: (ByteBuffer) -> Unit): Int
Link copied to clipboard
open suspend fun readFully(dst: ByteBuffer): Int
Link copied to clipboard
open suspend fun write(min: Int, block: (ByteBuffer) -> Unit)
Link copied to clipboard
open suspend fun writeAvailable(src: ByteBuffer): Int
open fun writeAvailable(min: Int, block: (ByteBuffer) -> Unit): Int
Link copied to clipboard
open suspend fun writeFully(src: ByteBuffer)
Link copied to clipboard
open suspend fun writeWhile(block: (ByteBuffer) -> Boolean)