Namespace for bit‐string utility functions.
Synopsis
Declared in <bdlb_bitstringutil.h>
struct BitStringUtil;
Description
This struct provides a namespace for a suite of static functions to manipulate and access sequences of bits stored in an array of uint64_t (also known as a "bit string"; see {The "Bit String" Pseudo‐Type}).
Enums
Name |
Description |
Bit‐string utility constants. |
Static Member Functions
Name |
Description |
Bitwise AND corresponding bits of two bit strings. |
|
|
|
|
|
|
|
|
|
Assign bits from |
|
Return the bit value at the specified |
|
Return a range of bits from |
|
Copy bits from a source bit string into a destination bit string. |
|
Copy bits between bit strings that do not overlap adversely. |
|
|
|
|
|
|
|
|
|
Insert bits of a given value into a bit string. |
|
Insert 0 bits into a bit string. |
|
Insert 1 bits into a bit string. |
|
Insert uninitialized bits into a bit string. |
|
Return whether any bit in a range of |
|
Return whether any bit in a range of |
|
Bitwise MINUS corresponding bits of two bit strings. |
|
Return the number of 0 bits in a range of |
|
Return the number of 1 bits in a range of |
|
Bitwise OR corresponding bits of two bit strings. |
|
Format a bit string to an output stream in hexadecimal. |
|
Remove bits from a bit string, shifting higher bits down. |
|
Remove bits and fill vacated high‐order bits with 0. |
|
Remove bits and fill vacated high‐order bits with 1. |
|
Exchange non‐overlapping bit ranges between two bit strings. |
|
Invert a range of bits in |
|
Bitwise XOR corresponding bits of two bit strings. |
Static Data Members
Name |
Description |
Sentinel index value indicating an invalid bit position. |
Created with MrDocs