readULongLe

Removes eight bytes from this source and returns an unsigned long integer composed of it according to the little-endian order.

Throws

when there are not enough data to read an unsigned long value.

when the source is closed.

when some I/O error occurs.

Samples

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

fun main() { 
   //sampleStart 
   val buffer = Buffer()
buffer.writeULong(0x123456789ABCDEF0U)
assertEquals(0xF0DEBC9A78563412U, buffer.readULongLe()) 
   //sampleEnd
}