System.Generics.Defaults.BinaryCompare
Delphi
function BinaryCompare(const Left, Right: Pointer; Size: NativeInt): Integer;
C++
extern DELPHI_PACKAGE int __fastcall BinaryCompare(const void * Left, const void * Right, System::NativeInt Size);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Generics.Defaults.pas System.Generics.Defaults.hpp |
System.Generics.Defaults | System.Generics.Defaults |
Description
BinaryCompare is used to compare two memory blocks.
Use BinaryCompare to compare two memory blocks. Left and Right point to the blocks of memory being compared. Size specifies the number of bytes that are being compared.
The return value of the BinaryCompare can be one of the following.
Return value | Description |
---|---|
Result is less than zero (<0) |
Left is less than Right. |
Result is equal to zero (=0) |
Left is equal to Right. |
Result is greater than zero (>0) |
Left is greater than Right. |