BloombergLP::bdlc::BitArray::xorEqual

Bitwise XOR a bit range from srcArray into this array.

Synopsis

Declared in <bdlc_bitarray.h>

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

Description

Bitwise XOR the specified numBits in this array, beginning at the specified dstIndex, with values from the specified srcArray beginning at the specified srcIndex (retaining the results). The behavior is undefined unless dstIndex + numBits <= length() and srcIndex + numBits <= srcArray.length().

Parameters

NameDescription
dstIndexstarting index in this array
srcArrayarray providing the source bits
srcIndexstarting index in srcArray
numBitsnumber of bits to XOR