[#BloombergLP-bdlc-BitArray-assignBits] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/BitArray.adoc[BitArray]::assignBits :relfileprefix: ../../../ :mrdocs: Assign the low‐order specified `numBits` from the specified `srcBits` to this object, starting at the specified `index`. The behavior is undefined unless `numBits <= k_BITS_PER_UINT64` and `index + numBits <= length()`. == Synopsis Declared in `<bdlc_bitarray.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void assignBits( std::size_t index, uint64_t srcBits, std::size_t numBits); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#