ktor-io / io.ktor.utils.io.core / writeInt

writeInt

fun Buffer.writeInt(value: Int): Unit

Write an integer or fail if not enough space available for writing. The numeric value is encoded in the network order (Big Endian).

inline fun IoBuffer.writeInt(value: Int): Unit
Deprecated: IoBuffer is deprecated. Use Memory or Output instead.


fun Output.writeInt(value: Int, byteOrder: ByteOrder): Unit
fun Output.writeInt(value: Int): Unit