Delphi Programming
This page is intended as a supplement to the official documentation on Delphi programming. CodeGear is in the process of putting the Delphi documentation on the Web. Once they have done so, this page will link to the relevant page in the official documentation.
This article is a stub.
Please help enhance the Delphi Programming Wiki by expanding it.
see the VCL Documentation Guidelines for an overview on doc pages

Unit[]

Description[]

Definition (Delphi 6, 2007, 2010):

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

Technical Comments[]

(Known issues / Documentation clarifications / Things to be aware of)

Examples[]


var Buffer1:array[0..2] of byte;

Buffer2:array[0..2] of byte;

if CompareMem(@Buffer1[0], @Buffer2[0], Length(Buffer1)) then

showmessage('Hi Buffer1 and Buffer2 is Same (if Buffer1 and Buffer2 length is same than)')

else

showmessage('Humm.. is not Same')


See Also[]

(Please provide links to items specifically related to this item.)

User Comments/Tips[]

(Please leave your name with your comment.)