BloombergLP::bdlc::BitArray::append

Append a bit range from srcArray to this array.

Synopsis

Declared in <bdlc_bitarray.h>

void
append(
    BitArray const& srcArray,
    std::size_t srcIndex,
    std::size_t numBits);

Description

Append to this array the specified numBits from the specified srcArray, beginning at the specified srcIndex. The behavior is undefined unless srcIndex + numBits <= srcArray.length(). Note that this method has the same behavior as: ` insert(length(), srcArray, srcIndex, numBits); `

Parameters

NameDescription
srcArrayarray providing the bits to append
srcIndexstarting index in srcArray
numBitsnumber of bits to append