| GenSortRecordCompareKeys Method |
Compares two specified keys and returns an integer that indicates their relationship to one another in the sort order.
Namespace:
Ookii.Jumbo.Jet.Samples.IO
Assembly:
Ookii.Jumbo.Jet.Samples (in Ookii.Jumbo.Jet.Samples.dll) Version: 2.0.0
Syntax public static int CompareKeys(
byte[] left,
byte[] right
)
Public Shared Function CompareKeys (
left As Byte(),
right As Byte()
) As Integer
public:
static int CompareKeys(
array<unsigned char>^ left,
array<unsigned char>^ right
)
static member CompareKeys :
left : byte[] *
right : byte[] -> int
Parameters
- left
- Type: SystemByte
The first key. If the array contains more than KeySize bytes, the remaining bytes are ignored. - right
- Type: SystemByte
The second key. If the array contains more than KeySize bytes, the remaining bytes are ignored.
Return Value
Type:
Int32Zero if the keys are identical; less than zero if
left is less than
right;
greater than zero if
left is greater than
right.
See Also