LSB-first bit reader that consumes a single-pass byte reader. More...
#include <deflate.hpp>
Public Member Functions | |
| iterator_bit_reader (byte_reader_type &input, format stream_format) noexcept | |
| Constructs a bit reader for one DEFLATE-family stream. | |
| std::uint32_t | read_bits (std::uint8_t bit_count) |
| Consumes a low-order-first bit field. | |
| void | align_to_byte () noexcept |
| Discard padding through the next byte boundary. | |
LSB-first bit reader that consumes a single-pass byte reader.
| byte_reader_type | Source reader providing read(). |
Definition at line 257 of file deflate.hpp.
|
inlinenoexcept |
Constructs a bit reader for one DEFLATE-family stream.
| input | Borrowed source reader that must outlive this object. |
| stream_format | Format used to classify truncated-input errors. |
Definition at line 265 of file deflate.hpp.
|
inlinenoexcept |
Discard padding through the next byte boundary.
Definition at line 295 of file deflate.hpp.
|
inlinenodiscard |
Consumes a low-order-first bit field.
| bit_count | Number of bits to consume. |
| compression_error | If the source ends before the field is complete. |
Definition at line 275 of file deflate.hpp.
References rpnx::compression::invalid_data.