[#BloombergLP-bdlb-BitStringImpUtil-setEqBits] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/BitStringImpUtil.adoc[BitStringImpUtil]::setEqBits :relfileprefix: ../../../ :mrdocs: Replace `numBits` in `*dstValue` with the low‐order bits of `srcValue`. == Synopsis Declared in `<bdlb_bitstringimputil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void setEqBits( uint64_t* dstValue, int dstIndex, uint64_t srcValue, int numBits); ---- == Description Replace the specified `numBits` in the specified `dstValue` starting at the specified `dstIndex` with the least‐significant `numBits` of the specified `srcValue`. The behavior is undefined unless `0 <= dstIndex`, `0 <= numBits`, and `dstIndex + numBits <= k_BITS_PER_UINT64`. == Parameters [cols="1,4"] |=== | Name| Description | *dstValue* | destination word to modify | *dstIndex* | index of the first destination bit | *srcValue* | source bits to assign | *numBits* | number of bits to replace |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#