ByteArrayComparator.kt
TLDR
This file contains a single function interface ByteArrayComparator
which is used for comparing two byte arrays.
Methods (if applicable)
compare
This method takes in the size of each entry, two byte arrays, and the indices of the entries to be compared. It returns an integer representing the result of the comparison. The comparison is performed based on the provided indices in the given byte arrays.
Classes (if applicable)
package shark.internal.aosp
internal fun interface ByteArrayComparator {
/**
* Indexes are divided by entrySize
*/
fun compare(
entrySize: Int,
o1Array: ByteArray,
o1Index: Int,
o2Array: ByteArray,
o2Index: Int
): Int
}