One-shot LZMA range encoder used by the deterministic literal encoder. More...
#include <xz.hpp>
Public Member Functions | |
| void | encode_bit (std::uint16_t &probability, std::uint8_t bit) |
| Encodes one adaptive binary symbol. | |
| std::vector< std::byte > | finish () |
| Finishes the range stream. | |
One-shot LZMA range encoder used by the deterministic literal encoder.
|
inline |
Encodes one adaptive binary symbol.
| probability | Probability updated in place after encoding. |
| bit | Symbol value, either zero or one. |
Definition at line 319 of file xz.hpp.
References rpnx::compression::xz_codec::probability_move_bits, rpnx::compression::xz_codec::probability_total, and rpnx::compression::xz_codec::range_top.
Referenced by rpnx::compression::xz_codec::compress_lzma_literals().
|
inlinenodiscard |
Finishes the range stream.
Definition at line 344 of file xz.hpp.
Referenced by rpnx::compression::xz_codec::compress_lzma_literals().