| Parameter | Description |
|---|---|
| dstPos | Index of the first bit to set. |
| srcPos | Index of the first bit to copy. |
| numBits | Number of bits to copy. |
Copies a range of bits from this array to another range in this array.
The bits to copy run from index srcPos up to (but not including) srcPos + numBits.
The bits to set run from index dstPos up to (but not including) dstPos + numBits.
The ranges may overlap, but the result in the overlapping region is undefined.
| Parameter | Description |
|---|---|
| dstPos | Index of the first bit to set. |
| srcBitArray | The source array. |
| srcPos | Index of the first bit to copy. |
| numBits | The number of bits to copy. |
Copies a range of bits from an array to a range of bits in this array.
The bits to copy in the source array run from index srcPos up to (but not including) srcPos + numBits.
The bits to set in the destination array run from index dstPos up to (but not including) dstPos + numBits.
It's fine if source and destination array are one and the same, even if the ranges overlap, but the result in the overlapping region is undefined.