LSB-first bit writer that emits bytes through an STL output iterator. More...
#include <deflate.hpp>
Public Member Functions | |
| iterator_bit_writer (output_iterator output) | |
| Constructs a writer owning an output iterator. | |
| void | write_bits (std::uint32_t value, std::uint8_t bit_count) |
| Appends the selected low bits of a value. | |
| output_iterator | finish () |
| Flushes zero byte padding and releases the output iterator. | |
LSB-first bit writer that emits bytes through an STL output iterator.
| output_iterator | Destination accepting byte assignments. |
Definition at line 203 of file deflate.hpp.
|
inlineexplicit |
Constructs a writer owning an output iterator.
| output | Destination iterator. |
Definition at line 210 of file deflate.hpp.
|
inlinenodiscard |
Flushes zero byte padding and releases the output iterator.
Definition at line 235 of file deflate.hpp.
References rpnx::compression::implementation::write_byte().
Referenced by rpnx::compression::deflate_codec::compress().
|
inline |
Appends the selected low bits of a value.
| value | Value containing the field. |
| bit_count | Number of low bits to emit least significant first. |
Definition at line 219 of file deflate.hpp.
References rpnx::compression::implementation::write_byte().
Referenced by rpnx::compression::deflate_codec::compress().