ktor-io / io.ktor.utils.io.core / writeUShort

writeUShort

fun Buffer.writeUShort(value: <ERROR CLASS>): Unit

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

inline fun IoBuffer.writeUShort(value: <ERROR CLASS>): Unit
Deprecated: IoBuffer is deprecated. Use Memory or Output instead.


@ExperimentalUnsignedTypes inline fun Output.writeUShort(v: <ERROR CLASS>): Unit