toUuid

fun ByteArray.toUuid(): UUID

Read ByteArray as two longs and combine the to UUID.

Expects following order: UUID.mostSigBits and then UUID.leastSigBits.


fun String.toUuid(): UUID

Converts given string to UUID.

Sources

Link copied to clipboard
Link copied to clipboard