System.Generics.Collections.TArray.Copy
Delphi
class procedure Copy<T>(const Source: array of T; var Destination: array of T; SourceIndex, DestIndex, Count: NativeInt); overload; static;
class procedure Copy<T>(const Source: array of T; var Destination: array of T; Count: NativeInt); overload; static;
C++
template<typename T> static void __fastcall Copy(const T *Source, const int Source_High, T *Destination, const int Destination_High, NativeInt SourceIndex, NativeInt DestIndex, NativeInt Count)/* overload */;
template<typename T> static void __fastcall Copy(const T *Source, const int Source_High, T *Destination, const int Destination_High, NativeInt Count)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Generics.Collections.pas System.Generics.Collections.hpp |
System.Generics.Collections | TArray |
Description
Copies an array or a segment of an array to another array.
Copy either copies the entire content or a segment of the array specified by Source
to the array specified by Destination
. The rest of parameters are the following:
SourceIndex
: Index of the first element inSource
to copy. This parameter determines the beginning of the segment to copy.DestIndex
: Index of the first element inDestination
to start the copy. This parameter determines the beginning of the copy in the destination array.Count
: Number of elements of the segment inSource
to copy. This parameter determines the size of the segment that starts in the indexSourceIndex
.