You are here: Symbol Reference > AbstractMtxVecInt Namespace > Classes > TMtxVecInt Class > public > BitShift Method > TMtxVecInt.BitShift Method (TMtxVecInt, integer, integer, integer, integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxVecInt.BitShift Method (TMtxVecInt, integer, integer, integer, integer)

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

Pascal
function BitShift(const Src: TMtxVecInt; Bits: integer; SrcIndex: integer; Index: integer; Len: integer): TMtxVecInt; overload;

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.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!