TMtxByte::BitShift Method

Overload List

#SignatureDescription
1TMtxVecInt *BitShift(int Bits);Apply binary shift by number of Bits to the left (positive) or right (negative) for all elements in the calling object.
2TMtxVecInt *BitShift(int Bits, int Index, int Len);Apply binary shift by number of Bits to the left (positive) or right (negative) to elements in the calling object.
3TMtxVecInt *BitShift(TMtxVecInt *Src, int Bits, int SrcIndex, int Index, int Len);Apply binary shift by number of Bits to the left (positive) or right (negative) to elements in Src.
4TMtxVecInt *BitShift(TMtxVecInt *Src, int Bits);Apply binary shift by number of Bits to the left (positive) or right (negative) to elements in Src.

Overload 1: TMtxVecInt *BitShift(int Bits);

Apply binary shift by number of Bits to the left (positive) or right (negative) for all elements in the calling object.

#NameTypeDescription
1Bitsint

Returns: the result of binary shift to the left or right by number of Bits applied to values in the calling object and stored back in the calling object. The shift preserves the sign of the numbers.

Declared in Dew::Math::TMtxVecInt · Dew.Math/AbstractMtxVecInt.h · Cross-compiler

Overload 2: TMtxVecInt *BitShift(int Bits, int Index, int Len);

Apply binary shift by number of Bits to the left (positive) or right (negative) to elements in the calling object.

#NameTypeDescription
1Bitsint
2Indexint
3Lenint

Returns: the result of binary shift to the left or right by number of Bits applied to values [Index]..[Index+Len-1] in the calling object and stored back in the calling object. The sign of the numbers is preserved when doing right shift.

Declared in Dew::Math::TMtxVecInt · Dew.Math/AbstractMtxVecInt.h · Cross-compiler

Overload 3: TMtxVecInt *BitShift(TMtxVecInt *Src, int Bits, int SrcIndex, int Index, int Len);

Apply binary shift by number of Bits to the left (positive) or right (negative) to elements in Src.

#NameTypeDescription
1SrcTMtxVecInt *
2Bitsint
3SrcIndexint
4Indexint
5Lenint

Returns: the result of binary shift to the left or right by number of Bits applied to Src values [SrcIndex]..[SrcIndex+Len-1] and stored in the calling object (Self) value [Index]..[Index+Len-1]. The sign of the numbers is preserved when doing right shift.

Declared in Dew::Math::TMtxVecInt · Dew.Math/AbstractMtxVecInt.h · Cross-compiler

Overload 4: TMtxVecInt *BitShift(TMtxVecInt *Src, int Bits);

Apply binary shift by number of Bits to the left (positive) or right (negative) to elements in Src.

#NameTypeDescription
1SrcTMtxVecInt *
2Bitsint

Returns: the result of binary shift to the left or right by number of Bits applied to Src values and stored in the calling object (Self). The sign of the numbers is preserved when doing right shift.

Declared in Dew::Math::TMtxVecInt · Dew.Math/AbstractMtxVecInt.h · Cross-compiler