toUuid

fun ByteArray.toUuid(order: ByteOrder = ByteOrder.BIG_ENDIAN): UUID

Converts a byte array to a 128-bit UUID.

Return

UUID

Parameters

order

The byte order, default is ByteOrder.BIG_ENDIAN.

Throws

If the byte array is not 16 bytes long.