readIntLe

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

Throws

when there are not enough data to read an int value.

when the source is closed.

Samples

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

fun main() { 
   //sampleStart 
   val buffer = Buffer()
buffer.writeInt(0x12345678)
assertEquals(0x78563412, buffer.readIntLe()) 
   //sampleEnd
}