ktor-io / io.ktor.utils.io / ByteChannelSequentialBase / readByte

readByte

open suspend fun readByte(): Byte

Overrides ByteReadChannel.readByte

Reads a byte (suspending if no bytes available yet) or fails if channel has been closed and not enough bytes.