ByteArrayComparator

fun interface ByteArrayComparator

Comparator for a fixed number of bytes.

Functions

Link copied to clipboard
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.