getUuid

fun ByteArray.getUuid(offset: Int, order: ByteOrder = ByteOrder.BIG_ENDIAN): UUID

Converts a byte array to a 128-bit UUID.

Return

UUID

Parameters

offset

The index to start from.

order

The byte order, default is ByteOrder.BIG_ENDIAN.

Throws

If the byte array is shorter than 16 bytes long.