Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxVecInt BitShift(TMtxVecInt Src, Int32 Bits) | Apply binary shift by number of Bits to the left (positive) or right (negative) to elements in Src. |
| └ indexed: TMtxVecInt BitShift(TMtxVecInt Src, Int32 Bits, Int32 SrcIndex, Int32 Index, Int32 Len) | ||
| 2 | TMtxVecInt BitShift(Int32 Bits) | Apply binary shift by number of Bits to the left (positive) or right (negative) for all elements in the calling object. |
| └ indexed: TMtxVecInt BitShift(Int32 Bits, Int32 Index, Int32 Len) |
Overload 1: TMtxVecInt BitShift(TMtxVecInt Src, Int32 Bits)
Apply binary shift by number of Bits to the left (positive) or right (negative) to elements in Src.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | Bits | Int32 |
Result: stored in self (calling object), returns self for chaining
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.
Indexed: TMtxVecInt BitShift(TMtxVecInt Src, Int32 Bits, Int32 SrcIndex, Int32 Index, Int32 Len)
Apply binary shift by number of Bits to the left (positive) or right (negative) to elements in Src.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | Bits | Int32 | |
| 3 | SrcIndex | Int32 | source start index |
| 4 | Index | Int32 | start index |
| 5 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
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.
Overload 2: TMtxVecInt BitShift(Int32 Bits)
Apply binary shift by number of Bits to the left (positive) or right (negative) for all elements in the calling object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Bits | Int32 |
Result: stored in self (calling object), returns self for chaining
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 sign of the numbers is preserved when doing right shift.
Indexed: TMtxVecInt BitShift(Int32 Bits, Int32 Index, Int32 Len)
Apply binary shift by number of Bits to the left (positive) or right (negative) to elements in the calling object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Bits | Int32 | |
| 2 | Index | Int32 | start index |
| 3 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
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.