ktor-io / io.ktor.utils.io / ByteReadChannel / readLong

readLong

abstract suspend fun readLong(): Long

Reads a long number (suspending if not enough bytes available) or fails if channel has been closed and not enough bytes.