writeLongLe

Writes eight bytes containing long, in the little-endian order, to this sink.

Parameters

long

the long integer to be written.

Throws

when the sink is closed.

when some I/O error occurs.

Samples

import kotlinx.io.*
import kotlin.test.*

fun main() { 
   //sampleStart 
   val buffer = Buffer()
buffer.writeLongLe(0x123456789ABCDEF0)
assertEquals(0xF0DEBC9A78563412U.toLong(), buffer.readLong()) 
   //sampleEnd
}