Compares two byte[] arrays, element by element, and returns the number of elements common to both arrays.

Namespace: Lucene.Net.Util
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public static int BytesDifference(
	byte[] bytes1,
	int len1,
	byte[] bytes2,
	int len2
)
Visual Basic
Public Shared Function BytesDifference ( _
	bytes1 As Byte(), _
	len1 As Integer, _
	bytes2 As Byte(), _
	len2 As Integer _
) As Integer
Visual C++
public:
static int BytesDifference(
	array<unsigned char>^ bytes1, 
	int len1, 
	array<unsigned char>^ bytes2, 
	int len2
)

Parameters

bytes1
Type: array<System..::..Byte>[]()[][]
The first byte[] to compare
len1
Type: System..::..Int32

[Missing <param name="len1"/> documentation for "M:Lucene.Net.Util.StringHelper.BytesDifference(System.Byte[],System.Int32,System.Byte[],System.Int32)"]

bytes2
Type: array<System..::..Byte>[]()[][]
The second byte[] to compare
len2
Type: System..::..Int32

[Missing <param name="len2"/> documentation for "M:Lucene.Net.Util.StringHelper.BytesDifference(System.Byte[],System.Int32,System.Byte[],System.Int32)"]

Return Value

The number of common elements.

See Also