writeUInt
Writes four bytes containing int, in the big-endian order, to this sink.
Parameters
int
the unsigned 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.writeUInt(4294967295U)
assertContentEquals(byteArrayOf(-1, -1, -1, -1), buffer.readByteArray())
//sampleEnd
}