writeIntLe

Writes four bytes containing int, in the little-endian order, to this sink.

Parameters

int

the 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.writeIntLe(0x12345678)
assertEquals(0x78563412, buffer.readInt()) 
   //sampleEnd
}