JPvdMerwe
JPvdMerwe

Reputation: 3363

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?

Upvotes: 11

Views: 19990

Answers (1)

Kornel Kisielewicz
Kornel Kisielewicz

Reputation: 57555

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? :>

Upvotes: 28

Related Questions