RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.CompareMem Function

Performs a binary comparison of two memory images.

Pascal
function CompareMem(P1: Pointer; P2: Pointer; Length: Integer): Boolean;
C++
Boolean CompareMem(void * P1, void * P2, int Length);

CompareMem performs a binary compare of Length bytes of memory referenced by P1 to that of P2. CompareMem returns true if the memory referenced by P1 is identical to that of P2. 

 

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