Wikia

Delphi Programming

CompareMem Routine

2,918pages on
this wiki
Talk0
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.
Stub
This article is a stub.
Please help enhance the Delphi Programming Wiki by expanding it.
Info
see the VCL Documentation Guidelines for an overview on doc pages

UnitEdit

DescriptionEdit

Definition (Delphi 6, 2007, 2010):

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

Technical CommentsEdit

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

ExamplesEdit


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 AlsoEdit

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

User Comments/TipsEdit

(Please leave your name with your comment.)

Around Wikia's network

Random Wiki