Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function BitShiftRight(const Src: TMtxVecInt; Bits: Integer): TMtxVecInt; | Apply binary shift by number of Bits to the right to elements in Src. |
| └ indexed: function BitShiftRight(const Src: TMtxVecInt; Bits: Integer; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt; | ||
| 2 | function BitShiftRight(Bits: Integer): TMtxVecInt; | Apply binary shift by number of Bits to the right for all elements in the calling object. |
| └ indexed: function BitShiftRight(Bits: Integer; Index: Integer; Len: Integer): TMtxVecInt; |
Overload 1: function BitShiftRight(const Src: TMtxVecInt; Bits: Integer): TMtxVecInt;
Apply binary shift by number of Bits to the right to elements in Src.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | Bits | Integer |
Result: stored in self (calling object), returns self for chaining
Returns: the result of binary shift to right by number of Bits applied to Src values and stored in the calling object (Self). The shift preserves the sign of the numbers.
Indexed: function BitShiftRight(const Src: TMtxVecInt; Bits: Integer; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;
Apply binary shift by number of Bits to the right to elements in Src.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | Bits | Integer | |
| 3 | SrcIndex | Integer | source start index |
| 4 | Index | Integer | start index |
| 5 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
Returns: the result of binary shift to 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 shift preserves the sign of the numbers.
Overload 2: function BitShiftRight(Bits: Integer): TMtxVecInt;
Apply binary shift by number of Bits to the right for all elements in the calling object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Bits | Integer |
Result: stored in self (calling object), returns self for chaining
Returns: the result of binary shift to 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.
Indexed: function BitShiftRight(Bits: Integer; Index: Integer; Len: Integer): TMtxVecInt;
Apply binary shift by number of Bits to the right to elements in the calling object.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Bits | Integer | |
| 2 | Index | Integer | start index |
| 3 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
Returns: the result of binary shift to right by number of Bits applied to values [Index]..[Index+Len-1] in the calling object and stored back in the calling object. The shift preserves the sign of the numbers.