Move vs CopyMemory in Delphi

delphi, pointers

Solution

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

Problem

Is there a difference between Move and CopyMemory in Delphi(specifically versions 2007 and up)? If so, what are the differences?

Original source