Return numBits bits beginning at index as low‐order return bits.
Synopsis
Declared in <bdlc_bitarray.h>
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
Name |
Description |
index |
starting bit position to read |
numBits |
number of bits to return |
Created with MrDocs