Method BytesDifference
BytesDifference(BytesRef, BytesRef)
Compares two BytesRef, element by element, and returns the number of elements common to both arrays.
Declaration
public static int BytesDifference(BytesRef left, BytesRef right)
Parameters
Type | Name | Description |
---|---|---|
BytesRef | left | The first BytesRef to compare. |
BytesRef | right | The second BytesRef to compare. |
Returns
Type | Description |
---|---|
System.Int32 | The number of common elements. |