Read a Zstandard entropy bitstream from its end toward its beginning. More...
#include <zstandard.hpp>
Public Member Functions | |
| reverse_bit_reader (std::span< std::byte const > input) | |
| Constructs a reader and removes the mandatory final-bit marker. | |
| std::uint32_t | read_bits (std::uint8_t count) |
| Consumes bits preceding the current reverse-stream position. | |
| std::size_t | remaining_bits () const noexcept |
| Returns the number of useful bits not yet consumed. | |
Read a Zstandard entropy bitstream from its end toward its beginning.
Definition at line 196 of file zstandard.hpp.
|
inlineexplicit |
Constructs a reader and removes the mandatory final-bit marker.
| input | Complete reverse bitstream retained for this object's lifetime. |
Definition at line 203 of file zstandard.hpp.
|
inlinenodiscard |
Consumes bits preceding the current reverse-stream position.
| count | Number of bits, at most 32. |
Definition at line 226 of file zstandard.hpp.
References rpnx::compression::invalid_data, and rpnx::compression::zstandard.
Referenced by rpnx::compression::zstandard_codec::decode_fse_weights(), rpnx::compression::zstandard_codec::decode_huffman_stream(), and rpnx::compression::zstandard_codec::decompress_compressed_block().
|
inlinenodiscardnoexcept |
Returns the number of useful bits not yet consumed.
Definition at line 248 of file zstandard.hpp.
Referenced by rpnx::compression::zstandard_codec::decode_fse_weights(), rpnx::compression::zstandard_codec::decode_huffman_stream(), and rpnx::compression::zstandard_codec::decompress_compressed_block().