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.