[#BloombergLP-bdlc-BitArray-assignBits] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/BitArray.adoc[BitArray]::assignBits :relfileprefix: ../../../ :mrdocs: Assign low‐order bits from `srcBits` into this array at `index`. == 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); ---- == Description 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()`. == Parameters [cols="1,4"] |=== | Name| Description | *index* | starting bit position in this array | *srcBits* | source word whose low‐order bits are assigned | *numBits* | number of low‐order bits to assign |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#