[#BloombergLP-bdlc-BitArray-bits] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/BitArray.adoc[BitArray]::bits :relfileprefix: ../../../ :mrdocs: Return `numBits` bits beginning at `index` as low‐order return bits. == Synopsis Declared in `<bdlc_bitarray.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- uint64_t bits( std::size_t index, std::size_t numBits) const; ---- == Description Return the specified `numBits` beginning at the specified `index` in this array as the low‐order bits of the returned value. The behavior is undefined unless `numBits <= sizeof(uint64_t) * CHAR_BIT` and `index + numBits <= length()`. == Return Value requested bits as the low‐order bits of the returned value == Parameters [cols="1,4"] |=== | Name| Description | *index* | starting bit position to read | *numBits* | number of bits to return |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#