Sign in Join
FPDoc Onlineexperiment

CompareMem function

In unit sysutils

Compare two memory areas.

Declaration

pascal
function CompareMem(P1: Pointer; P2: Pointer; &Length: PtrUInt)
: Boolean

Description

CompareMem compares, byte by byte, 2 memory areas pointed to by P1 and P2, for a length of L bytes.

The function returns True if all L bytes are the same, and False otherwise.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.