VectorInt.CopyToArray Method

Overload List

#SignatureDescription
1function CopyToArray(var Dst: TCplxArray): TMtxVecInt;Copies values from the calling object to the Dst array and converts data to double precision numbers.
└ indexed: function CopyToArray(var Dst: TCplxArray; const DstIndex: Integer; const Index: Integer; const Len: Integer): TMtxVecInt;
2function CopyToArray(var Dst: TByteArray): TMtxVecInt;Copies values from the calling object to the Dst array and converts data to 1 byte unsigned integer numbers.
└ indexed: function CopyToArray(var Dst: TByteArray; const DstIndex: Integer; const Index: Integer; const Len: Integer): TMtxVecInt;
3function CopyToArray(var Dst: TDoubleArray): TMtxVecInt;Copy values to Dst array. The size of the array is set automatically.
└ indexed: function CopyToArray(var Dst: TDoubleArray; const DstIndex: Integer; const Index: Integer; const Len: Integer): TMtxVecInt;
4function CopyToArray(var Dst: TSmallIntArray): TMtxVecInt;Copies values from the calling object to the Dst array and converts data to 2 byte signed integer numbers.
└ indexed: function CopyToArray(var Dst: TSmallIntArray; const DstIndex: Integer; const Index: Integer; const Len: Integer): TMtxVecInt;
5function CopyToArray(var Dst: TIntegerArray): TMtxVecInt;Copies values from the calling object to the Dst array and converts data to 4 byte signed integer numbers.
└ indexed: function CopyToArray(var Dst: TIntegerArray; const DstIndex: Integer; const Index: Integer; const Len: Integer): TMtxVecInt;
6function CopyToArray(var Dst: TSingleArray): TMtxVecInt;Copies the calling object data to an array of single precision floating point data.
└ indexed: function CopyToArray(var Dst: TSingleArray; const DstIndex: Integer; const Index: Integer; const Len: Integer): TMtxVecInt;
7function CopyToArray(var Dst: TWordArray): TMtxVecInt;Copies values from the calling object to the Dst array and converts data to 2 byte unsigned integer type.
└ indexed: function CopyToArray(var Dst: TWordArray; const DstIndex: Integer; const Index: Integer; const Len: Integer): TMtxVecInt;

Overload 1: function CopyToArray(var Dst: TCplxArray): TMtxVecInt;

Copies values from the calling object to the Dst array and converts data to double precision numbers.

#NameTypeDescription
1DstTCplxArray

Result: stored in self (calling object), returns self for chaining

Remarks:

Consecutive elements are converted to real and imaginary parts.

Indexed: function CopyToArray(var Dst: TCplxArray; const DstIndex: Integer; const Index: Integer; const Len: Integer): TMtxVecInt;

Copy values from the calling object [Index]..[Index+len-1] to the Dst integer array at positions [DstIndex]...[DstIndex+Len-1].

#NameTypeDescription
1DstTCplxArray
2DstIndexIntegerdestination start index
3IndexIntegerstart index
4LenIntegerelement count

Result: stored in self (calling object), returns self for chaining

Remarks:

The size of the Dst array is not changed. The method converts calling object values to double precision floating point values. Consecutive elements are converted to real and imaginary parts.

Overload 2: function CopyToArray(var Dst: TByteArray): TMtxVecInt;

Copies values from the calling object to the Dst array and converts data to 1 byte unsigned integer numbers.

#NameTypeDescription
1DstTByteArray

Result: stored in self (calling object), returns self for chaining

Remarks:

Values exceeding the range of 1 byte unsigned integer type are clipped.

Indexed: function CopyToArray(var Dst: TByteArray; const DstIndex: Integer; const Index: Integer; const Len: Integer): TMtxVecInt;

Copy values from the calling object [Index]..[Index+len-1] to the Dst integer array at positions [DstIndex]...[DstIndex+Len-1].

#NameTypeDescription
1DstTByteArray
2DstIndexIntegerdestination start index
3IndexIntegerstart index
4LenIntegerelement count

Result: stored in self (calling object), returns self for chaining

Remarks:

The size of the Dst array is not changed. Values exceeding the range of 1 byte unsigned integer type are clipped.

Overload 3: function CopyToArray(var Dst: TDoubleArray): TMtxVecInt;

Copy values to Dst array. The size of the array is set automatically.

#NameTypeDescription
1DstTDoubleArray

Result: stored in self (calling object), returns self for chaining

Indexed: function CopyToArray(var Dst: TDoubleArray; const DstIndex: Integer; const Index: Integer; const Len: Integer): TMtxVecInt;

Copy values from the calling object [Index]..[Index+len-1] to the Dst array at positions [DstIndex]...[DstIndex+Len-1].

#NameTypeDescription
1DstTDoubleArray
2DstIndexIntegerdestination start index
3IndexIntegerstart index
4LenIntegerelement count

Result: stored in self (calling object), returns self for chaining

Remarks:

The size of the Dst array is not changed.

Overload 4: function CopyToArray(var Dst: TSmallIntArray): TMtxVecInt;

Copies values from the calling object to the Dst array and converts data to 2 byte signed integer numbers.

#NameTypeDescription
1DstTSmallIntArray

Result: stored in self (calling object), returns self for chaining

Remarks:

Values exceeding the range of a 2 byte signed integer type are clipped.

Indexed: function CopyToArray(var Dst: TSmallIntArray; const DstIndex: Integer; const Index: Integer; const Len: Integer): TMtxVecInt;

Copy values from the calling object [Index]..[Index+len-1] to the Dst integer array at positions [DstIndex]...[DstIndex+Len-1].

#NameTypeDescription
1DstTSmallIntArray
2DstIndexIntegerdestination start index
3IndexIntegerstart index
4LenIntegerelement count

Result: stored in self (calling object), returns self for chaining

Remarks:

The size of the Dst array is not changed. Values exceeding the range of a 2 byte signed integer type are clipped.

Overload 5: function CopyToArray(var Dst: TIntegerArray): TMtxVecInt;

Copies values from the calling object to the Dst array and converts data to 4 byte signed integer numbers.

#NameTypeDescription
1DstTIntegerArray

Result: stored in self (calling object), returns self for chaining

Indexed: function CopyToArray(var Dst: TIntegerArray; const DstIndex: Integer; const Index: Integer; const Len: Integer): TMtxVecInt;

Copy values from the calling object [Index]..[Index+len-1] to the Dst integer array at positions [DstIndex]...[DstIndex+Len-1].

#NameTypeDescription
1DstTIntegerArray
2DstIndexIntegerdestination start index
3IndexIntegerstart index
4LenIntegerelement count

Result: stored in self (calling object), returns self for chaining

Remarks:

The size of the Dst array is not changed. The method converts calling object values to 4 byte signed integers. Values exceeding the range of a 4 byte signed integer type are clipped.

Overload 6: function CopyToArray(var Dst: TSingleArray): TMtxVecInt;

Copies the calling object data to an array of single precision floating point data.

#NameTypeDescription
1DstTSingleArray

Result: stored in self (calling object), returns self for chaining

Remarks:

Any values exceeding the range are clipped.

Indexed: function CopyToArray(var Dst: TSingleArray; const DstIndex: Integer; const Index: Integer; const Len: Integer): TMtxVecInt;

Copy values from the calling object [Index]..[Index+len-1] to the Dst single precision floating point array at positions [DstIndex]...[DstIndex+Len-1].

#NameTypeDescription
1DstTSingleArray
2DstIndexIntegerdestination start index
3IndexIntegerstart index
4LenIntegerelement count

Result: stored in self (calling object), returns self for chaining

Remarks:

The size of the Dst array is not changed.

Overload 7: function CopyToArray(var Dst: TWordArray): TMtxVecInt;

Copies values from the calling object to the Dst array and converts data to 2 byte unsigned integer type.

#NameTypeDescription
1DstTWordArray

Result: stored in self (calling object), returns self for chaining

Remarks:

Values exceeding the range of a 2 byte unsigned integer type are clipped.

Indexed: function CopyToArray(var Dst: TWordArray; const DstIndex: Integer; const Index: Integer; const Len: Integer): TMtxVecInt;

Copy values from the calling object [Index]..[Index+len-1] to the Dst integer array at positions [DstIndex]...[DstIndex+Len-1].

#NameTypeDescription
1DstTWordArray
2DstIndexIntegerdestination start index
3IndexIntegerstart index
4LenIntegerelement count

Result: stored in self (calling object), returns self for chaining

Remarks:

The size of the Dst array is not changed. Values exceeding the range of a 2 byte unsigned integer type are clipped.