readUIntLe

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

Throws

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

when the source is closed.

Samples

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

fun main() { 
   //sampleStart 
   val buffer = Buffer()
buffer.writeUInt(0x12345678U)
assertEquals(0x78563412U, buffer.readUIntLe()) 
   //sampleEnd
}