RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Generics.Defaults.BinaryCompare Function

BinaryCompare is used to compare two memory blocks.

Pascal
function BinaryCompare(const Left: Pointer; const Right: Pointer; Size: Integer): Integer;
C++
int BinaryCompare(const void * Left, const void * Right, int Size);

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.  

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!