compare

abstract fun compare(a: ByteArray, aI: Int, b: ByteArray, bI: Int): Int

Compare bytes starting from the given offsets. The return value has the same contract as Comparator.compare.