System.SysUtils.CompareMem
Delphi
function CompareMem(P1, P2: Pointer; Length: NativeInt): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall CompareMem(void * P1, void * P2, System::NativeInt Length);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | System.SysUtils |
Description
Performs a binary comparison of two memory images.
CompareMem performs a binary comparison of Length bytes of memory referenced by P1 to those of P2. CompareMem returns True if the memory referenced by P1 is identical to that of P2.