ktor-io / io.ktor.utils.io.core / readInt

readInt

fun Buffer.readInt(): Int

Read an integer or fail if not enough bytes available for reading. The numeric value is decoded in the network order (Big Endian).

inline fun IoBuffer.readInt(): Int
Deprecated: IoBuffer is deprecated. Use Memory or Input instead.


fun Input.readInt(byteOrder: ByteOrder): Int
fun Input.readInt(): Int