|
ADS
Algorithms and Data Structures
|
reads the bits of a sequence of bytes in the order of a PackedBitWriter, and zeros past its end More...
#include <ADS/compression/PackedBits.h>
Public member functions | |
| PackedBitReader (std::span< const std::uint8_t > b) | |
| the reader of the bytes \( b \), which must outlive it | |
| bool | get (void) |
| the next bit, 0 past the end | |
| std::uint64_t | get (int k) |
| the value of the next \( k \) bits, the first the most significant | |
| std::size_t | position (void) const |
| the number of bits read, past the end too | |
| std::size_t | size (void) const |
| the number of bits of the bytes | |
reads the bits of a sequence of bytes in the order of a PackedBitWriter, and zeros past its end
|
inlineexplicit |
the reader of the bytes \( b \), which must outlive it
| std::uint64_t ADS::PackedBitReader::get | ( | int | k | ) |
the value of the next \( k \) bits, the first the most significant
| bool ADS::PackedBitReader::get | ( | void | ) |
the next bit, 0 past the end
|
inlinenodiscard |
the number of bits read, past the end too
|
inlinenodiscard |
the number of bits of the bytes