Remove bits and fill vacated high-order bits with 0.
Declared in <bdlb_bitstringutil.h>
static
void
removeAndFill0(
uint64_t* bitString,
std::size_t length,
std::size_t index,
std::size_t numBits);
Remove the specified numBits from the specified bitString having the specified length beginning at the specified index. Bits above index + numBits are shifted down by numBits index positions and the last numBits of bitString are set to 0. The length of bitString is not changed. The behavior is undefined unless index + numBits <= length.
| Name | Description |
|---|---|
| bitString | bit string to modify |
| length | number of bits in bitString |
| index | starting bit position of the range to remove |
| numBits | number of bits to remove |