Set a range of bits in bitString to value.
Declared in <bdlb_bitstringutil.h>
static
void
assign(
uint64_t* bitString,
std::size_t index,
bool value,
std::size_t numBits);
Set the specified numBits beginning at the specified index in the specified bitString to the specified value. The behavior is undefined unless bitString has a capacity of at least index + numBits.
| Name | Description |
|---|---|
| bitString | bit string to modify |
| index | starting bit position |
| value | value to assign to each bit |
| numBits | number of bits to set |