[#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&hyphen;order specified `numBits` from the specified `srcValue` to the `numBits` starting at the specified `index` in the specified `bitString`&period; The behavior is undefined unless `numBits &lt;&equals; k&lowbar;BITS&lowbar;PER&lowbar;UINT64` and `bitString` has a capacity of at least `index &plus; numBits`&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;bitstringutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
assignBits(
    uint64&lowbar;t* bitString,
    std::size&lowbar;t index,
    uint64&lowbar;t srcValue,
    std::size&lowbar;t numBits);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
