TArray.Copy<T> Method

Overloads

Copy<T>(array of T)

Copies an open array to a dynamic array.

Copy<T>(array of T, array of T, NativeInt)

Copies the specified count of elements from the source array to the target array.

Copy<T>(array of T, array of T, NativeInt, NativeInt, NativeInt)

Copies the specified count of elements from the specified position in the source array to the specified position in the target array.

Copy<T>(array of T)

Copies an open array to a dynamic array.

Delphi
class function Copy<T>(const values: array of T): TArray<T>

Type Parameters

T

Parameters

values
array of T

Returns

TArray<T>

Copy<T>(array of T, array of T, NativeInt)

Copies the specified count of elements from the source array to the target array.

Delphi
class procedure Copy<T>(const source: array of T; var target: array of T; count: NativeInt)

Type Parameters

T

Parameters

source
array of T
target
array of T
count
NativeInt

Copy<T>(array of T, array of T, NativeInt, NativeInt, NativeInt)

Copies the specified count of elements from the specified position in the source array to the specified position in the target array.

Delphi
class procedure Copy<T>(const source: array of T; var target: array of T; sourceIndex: NativeInt; targetIndex: NativeInt; count: NativeInt)

Type Parameters

T

Parameters

source
array of T
target
array of T
sourceIndex
NativeInt
targetIndex
NativeInt
count
NativeInt