System.Move

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Move(const Source; var Dest; Count: NativeInt);

C++

extern DELPHI_PACKAGE void __fastcall Move(const void *Source, void *Dest, System::NativeInt Count);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.pas
System.hpp
System System

Description

Copies bytes from a source to a destination.

Move copies Count bytes from Source to Dest. No range checking is performed. Move compensates for overlaps between the source and destination blocks.

Whenever possible, use the global SizeOf function (Delphi) or the sizeof operator (C++) to determine the count.

Note: This method has an untyped parameter (Dest), which can lead to memory corruption. To avoid this problem, use SizeOf to determine the number of bytes appropriate to "move" for the data type being used in Count parameter.

See Also

Code Examples