writeShort

abstract fun writeShort(short: Short)(source)

Writes two bytes containing short, in the big-endian order, to this sink.

Parameters

short

the short integer to be written.

Throws

when the sink is closed.

when some I/O error occurs.

Samples