MSB-first bit reader backed by a single-pass byte reader. More...
#include <bzip2.hpp>
Public Member Functions | |
| iterator_bit_reader (byte_reader_type &input) noexcept | |
| Constructs a bit reader over a byte reader. | |
| std::uint64_t | read_bits (std::uint8_t count) |
| Consumes a big-endian bit field containing at most 64 bits. | |
| void | align_to_byte () noexcept |
| Discard padding through the next byte boundary. | |
MSB-first bit reader backed by a single-pass byte reader.
| byte_reader_type | Source reader providing read(). |
|
inlineexplicitnoexcept |
|
inlinenoexcept |
|
inlinenodiscard |
Consumes a big-endian bit field containing at most 64 bits.
| count | Number of bits to consume. |
| compression_error | If the count exceeds 64 or input is truncated. |
Definition at line 785 of file bzip2.hpp.
References rpnx::compression::bzip2, and rpnx::compression::invalid_data.