fromULongs

Common
JVM
JS
Native
1.0
fun fromULongs(
    mostSignificantBits: ULong,
    leastSignificantBits: ULong
): Uuid

(source)

Creates a uuid from specified 128 bits split into two 64-bit ULongs.

This function interprets the provided ULong values in big-endian byte order.

import kotlin.uuid.*

fun main(args: Array<String>) {
//sampleStart
val uuid = Uuid.fromULongs(0x550E8400E29B41D4uL, 0xA716446655440000uL)
println(uuid) // 550e8400-e29b-41d4-a716-446655440000
//sampleEnd
}

Parameters

mostSignificantBits - The most significant 64 bits of the uuid.

leastSignificantBits - The least significant 64 bits of the uuid.

Return A new uuid based on the specified bits.

See Also

Uuid.toULongs