Apache Lucene.Net 2.4.0 Class Library API

StringHelper.bytesDifference Method 

Compares two byte arrays, starting at their 0th elements, and returns the number of common elements before encountering a difference.

public static int bytesDifference(
   byte[] bytes1,
   int len1,
   byte[] bytes2,
   int len2
);

Parameters

bytes1
len1
bytes2
len2

Return Value

the number of common elements

See Also

StringHelper Class | Lucene.Net.Util Namespace