TVecSmallInt.Convert Method

function Convert(const Src: TMtxVecInt; DstIntPrecision: TIntPrecision): TMtxVecInt;

Copy each of Vec elements to the calling object.

#NameTypeDescription
1SrcTMtxVecIntsource TVecInt or TMtxInt
2DstIntPrecisionTIntPrecision

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

Remarks:

The Size property of the calling object is set implicitly to match Vec object. The storage precision of the calling object is set to DstIntPrecision.

Indexed: function Convert(const Src: TMtxVecInt; DstIntPrecision: TIntPrecision; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;

Copy Src elements [SrcIndex]..[SrcIndex+Len-1] in the calling object elements [Index]..[Index+Len-1].

#NameTypeDescription
1SrcTMtxVecIntsource TVecInt or TMtxInt
2DstIntPrecisionTIntPrecision
3SrcIndexIntegersource start index
4IndexIntegerstart index
5LenIntegerelement count

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

Remarks:

Calling vector TMtxVecInt.Size must be set explicitly. An exception is raised if array borders are overrun or underrun. If the precision of the calling does not match DstIntPrecision, an exception will be raised.