Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Move vs CopyMemory in Delphi

Is there a difference between Move and CopyMemory in Delphi(specifically versions 2007 and up)?

If so, what are the differences?

like image 539
JPvdMerwe Avatar asked Jan 08 '10 13:01

JPvdMerwe


1 Answers

Have a look at windows.pas in Delphi:

procedure CopyMemory(Destination: Pointer; Source: Pointer; Length: DWORD);
begin
  Move(Source^, Destination^, Length);
end;

Does that answer your question? :>

like image 143
Kornel Kisielewicz Avatar answered Nov 24 '22 14:11

Kornel Kisielewicz