BloombergLP::bdlb::BitMaskUtil::zero

Return the unsigned integral value having the specified numBits starting at the specified index set to 0, and all other bits set to 1.

Synopsis

Declared in <bdlb_bitmaskutil.h>

static
uint32_t
zero(
    int index,
    int numBits);

Return Value

mask with numBits bits cleared starting at index

Parameters

NameDescription
indexstarting bit position of the range to clear
numBitsnumber of consecutive bits to clear