[#BloombergLP-bdlb-BitStringUtil-assignBits] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/BitStringUtil.adoc[BitStringUtil]::assignBits :relfileprefix: ../../../ :mrdocs: 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`. == Synopsis Declared in `<bdlb_bitstringutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void assignBits( uint64_t* bitString, std::size_t index, uint64_t srcValue, std::size_t numBits); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#