binary-streams / loggersoft.kotlin.streams / kotlin.Long / toBytes

toBytes

fun Long.toBytes(buffer: ByteArray, bytes: Int = 8, byteOrder: ByteOrder = nativeByteOrder, offset: Int = 0): Unit

Writes this value as bytes to buffer byte array starting from offset with specified byteOrder.