ktor-io / io.ktor.utils.io / ByteChannelSequentialBase / readInt

readInt

open suspend fun readInt(): Int

Overrides ByteReadChannel.readInt

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