System.SysUtils.CompareMem

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function CompareMem(P1, P2: Pointer; Length: Integer): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall CompareMem(void * P1, void * P2, int 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.

See Also