writeULong

Writes eight bytes containing long, in the big-endian order, to this sink.

Parameters

long

the unsigned long integer to be written.

Throws

when the sink is closed.

Samples

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

fun main() { 
   //sampleStart 
   val buffer = Buffer()
buffer.writeULong(18446744073709551615UL)

assertContentEquals(byteArrayOf(-1, -1, -1, -1, -1, -1, -1, -1), buffer.readByteArray()) 
   //sampleEnd
}