Assign bits from srcValue into bitString.
Synopsis
Declared in <bdlb_bitstringutil.h>
static
void
assignBits(
uint64_t* bitString,
std::size_t index,
uint64_t srcValue,
std::size_t numBits);
Description
Assign the low‐order specified numBits from the specified srcValue to the numBits starting at the specified index in the specified bitString. The behavior is undefined unless numBits <= k_BITS_PER_UINT64 and bitString has a capacity of at least index + numBits.
Parameters
Name |
Description |
bitString |
bit string to modify |
index |
starting bit position |
srcValue |
source of the bits to assign |
numBits |
number of low‐order bits to assign |
Created with MrDocs