readLongLe

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

Throws

when there are not enough data to read a long value.

when the source is closed.

Samples

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

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