BloombergLP::bdlc::BitArray::assignBits

Assign low-order bits from srcBits into this array at index.

Synopsis

Declared in <bdlc_bitarray.h>

void
assignBits(
    std::size_t index,
    uint64_t srcBits,
    std::size_t numBits);

Description

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().

Parameters

NameDescription
indexstarting bit position in this array
srcBitssource word whose low-order bits are assigned
numBitsnumber of low-order bits to assign