MSB-first bit writer backed by an STL output iterator. More...
#include <bzip2.hpp>
Public Member Functions | |
| iterator_bit_writer (output_iterator output) | |
| Constructs a writer owning an output iterator. | |
| void | write_bits (std::uint64_t value, std::uint8_t count) |
| Appends a big-endian bit field. | |
| output_iterator | finish () |
| Pads the final byte with zeros and releases the output iterator. | |
MSB-first bit writer backed by an STL output iterator.
| output_iterator | Destination accepting byte assignments. |
|
inlineexplicit |
|
inlinenodiscard |
Pads the final byte with zeros and releases the output iterator.
Definition at line 746 of file bzip2.hpp.
References rpnx::compression::implementation::write_byte().
Referenced by rpnx::compression::bzip2_codec::compress().
|
inline |
Appends a big-endian bit field.
| value | Value whose low count bits are emitted most significant first. |
| count | Number of bits to emit, from zero through 64. |
| compression_error | If count exceeds 64. |
Definition at line 723 of file bzip2.hpp.
References rpnx::compression::bzip2, rpnx::compression::invalid_data, and rpnx::compression::implementation::write_byte().
Referenced by rpnx::compression::bzip2_codec::compress().