Assign low-order bits from srcBits into this array at index.
Declared in <bdlc_bitarray.h>
void
assignBits(
std::size_t index,
uint64_t srcBits,
std::size_t numBits);
Assign the low-order specified numBits from the specified srcBits to this object, starting at the specified index. The behavior is undefined unless numBits <= k_BITS_PER_UINT64 and index + numBits <= length().
| Name | Description |
|---|---|
| index | starting bit position in this array |
| srcBits | source word whose low-order bits are assigned |
| numBits | number of low-order bits to assign |