[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'System' (#rtl)

# CopyArray

Copy managed-type elements in array

## Declaration

Source position: rttih.inc line 42

`procedure CopyArray(`
`dest: Pointer;`
`source: Pointer;`
`typeInfo: Pointer;`
`count: SizeInt`
`);`

## Description

CopyArray copies count elements containing managed types from the array pointed to by source to the array pointed to by dest. For this, it uses the type information of the elements as specified in typeinfo.

Under normal circumstances, this procedure should not be used, it is called automatically by the compiler when an array-typed variables are assigned to each other.

## See also

InitializeArray |  | Initialize managed-type elements in array
FinalizeArray |  | Finalize managed-type elements in array
DynArraySize |  | Return length of dynamic array
DynArrayClear |  | Clears a dynamic array
DynArrayDim |  | Return the number of dimensions in a dynamic array
DynArrayBounds |  | Return the bounds of the dynamic array

Documentation generated on: May 14 2021