TAbstractMtxVecInt.BitShiftLeft Method

Overload List

#SignatureDescription
1function BitShiftLeft(const Src: TMtxVecInt; Bits: integer): TMtxVecInt; overload;Apply binary shift by number of Bits to the left to elements in Src.
└ indexed: function BitShiftLeft(const Src: TMtxVecInt; Bits: integer; SrcIndex, Index, Len: integer): TMtxVecInt; overload;
2function BitShiftLeft(Bits: integer): TMtxVecInt; overload;Apply binary shift by number of Bits to the left for all elements in the calling object.
└ indexed: function BitShiftLeft(Bits, Index, Len: integer): TMtxVecInt; overload;

Overload 1: function BitShiftLeft(const Src: TMtxVecInt; Bits: integer): TMtxVecInt; overload;

Apply binary shift by number of Bits to the left to elements in Src.

#NameTypeDescription
1SrcTMtxVecIntsource TVecInt or TMtxInt
2Bitsinteger

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

Returns: the result of binary shift to left by number of Bits applied to Src values and stored in the calling object (Self).

Indexed: function BitShiftLeft(const Src: TMtxVecInt; Bits: integer; SrcIndex, Index, Len: integer): TMtxVecInt; overload;

Apply binary shift by number of Bits to the left to elements in Src.

#NameTypeDescription
1SrcTMtxVecIntsource TVecInt or TMtxInt
2Bitsinteger
3SrcIndexintegersource start index
4Indexintegerstart index
5Lenintegerelement count

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

Returns: the result of binary shift to left by number of Bits applied to Src values [SrcIndex]..[SrcIndex+Len-1] and stored in the calling object (Self) value [Index]..[Index+Len-1].

Overload 2: function BitShiftLeft(Bits: integer): TMtxVecInt; overload;

Apply binary shift by number of Bits to the left for all elements in the calling object.

#NameTypeDescription
1Bitsinteger

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

Returns: the result of binary shift to left by number of Bits applied to values in the calling object and stored back in the calling object.

Indexed: function BitShiftLeft(Bits, Index, Len: integer): TMtxVecInt; overload;

Apply binary shift by number of Bits to the left to elements in the calling object.

#NameTypeDescription
1Bitsinteger
2Indexintegerstart index
3Lenintegerelement count

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

Returns: the result of binary shift to left by number of Bits applied to values [Index]..[Index+Len-1] in the calling object and stored back in the calling object.