| Utf8StringRawComparerCompare Method (Byte, Int32, Int32, Byte, Int32, Int32) |
Compares the binary representation of two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
Namespace:
Ookii.Jumbo.IO
Assembly:
Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 2.0.0
Syntax public int Compare(
byte[] buffer1,
int offset1,
int count1,
byte[] buffer2,
int offset2,
int count2
)
Public Function Compare (
buffer1 As Byte(),
offset1 As Integer,
count1 As Integer,
buffer2 As Byte(),
offset2 As Integer,
count2 As Integer
) As Integer
public:
virtual int Compare(
array<unsigned char>^ buffer1,
int offset1,
int count1,
array<unsigned char>^ buffer2,
int offset2,
int count2
) sealed
abstract Compare :
buffer1 : byte[] *
offset1 : int *
count1 : int *
buffer2 : byte[] *
offset2 : int *
count2 : int -> int
override Compare :
buffer1 : byte[] *
offset1 : int *
count1 : int *
buffer2 : byte[] *
offset2 : int *
count2 : int -> int
Parameters
- buffer1
- Type: SystemByte
The buffer containing the first object. - offset1
- Type: SystemInt32
The offset into buffer1 where the first object starts. - count1
- Type: SystemInt32
The number of bytes in buffer1 used by the first object. - buffer2
- Type: SystemByte
The buffer containing the second object. - offset2
- Type: SystemInt32
The offset into buffer2 where the second object starts. - count2
- Type: SystemInt32
The number of bytes in buffer2 used by the second object.
Return Value
Type:
Int32A signed integer that indicates the relative values of the first and second object.
Implements
IRawComparerTCompare(Byte, Int32, Int32, Byte, Int32, Int32)Remarks
The values of count1 and count2 may be larger than the size of the record.
The comparer should determine on its own the actual size of the record, in the same way the IWritable
or ValueWriterT for that record does, and use that for the comparison. You should however
never read more bytes from the buffer than the specified count.
See Also