tuweni / org.apache.tuweni.kademlia / kotlin.ByteArray / xorDist

xorDist

infix fun ByteArray.xorDist(other: ByteArray): Int (source)

Determine the XOR-distance between this and an equal-length byte array.

Parameters

other - the byte-array to calculate the distance to

Exceptions

IllegalArgumentException - if other is not the same length as this

Return
the distance as an integer