compareUnsigned

fun compareUnsigned(a: ByteArray, aFromIndex: Int, aToIndex: Int, b: ByteArray, bFromIndex: Int, bToIndex: Int): Int

Compare exactly the bytes in the slices [aFromIndex, aToIndex) and [bFromIndex, bToIndex) as unsigned bytes.

If a mismatch is found at index i (relative to the slices), it returns the result of comparing the two differing unsigned byte values.

If the slices are equal up to the length of the shorter slice, then the lengths are compared.