writeUShortLe
Writes two bytes containing short, in the little-endian order, to this sink.
Parameters
short
the unsigned short integer to be written.
Throws
when the sink is closed.
Samples
import kotlinx.io.*
import kotlin.test.*
fun main() {
//sampleStart
val buffer = Buffer()
buffer.writeUShortLe(0x1234U)
assertEquals(0x3412U, buffer.readUShort())
//sampleEnd
}