RPNX::Compress
Self-contained C++20 compression and ZIP library
 
Loading...
Searching...
No Matches
rpnx::compression::xz_codec::lzma_model::length_model Struct Reference

Probability tables for the three LZMA match-length ranges. More...

#include <xz.hpp>

Public Attributes

std::uint16_t choice = probability_total / 2U
 Selects the low range.
 
std::uint16_t choice2 = probability_total / 2U
 Selects the middle or high range.
 
std::array< std::array< std::uint16_t, 8U >, position_state_countlow {}
 Low-range trees by position state.
 
std::array< std::array< std::uint16_t, 8U >, position_state_countmid {}
 Middle-range trees by position state.
 
std::array< std::uint16_t, 256U > high {}
 High-range probability tree.
 

Detailed Description

Probability tables for the three LZMA match-length ranges.

Definition at line 54 of file xz.hpp.

Member Data Documentation

◆ choice

std::uint16_t rpnx::compression::xz_codec::lzma_model::length_model::choice = probability_total / 2U

Selects the low range.

Definition at line 56 of file xz.hpp.

Referenced by rpnx::compression::xz_codec::decode_length().

◆ choice2

std::uint16_t rpnx::compression::xz_codec::lzma_model::length_model::choice2 = probability_total / 2U

Selects the middle or high range.

Definition at line 57 of file xz.hpp.

Referenced by rpnx::compression::xz_codec::decode_length().

◆ high

std::array< std::uint16_t, 256U > rpnx::compression::xz_codec::lzma_model::length_model::high {}

High-range probability tree.

Definition at line 60 of file xz.hpp.

Referenced by rpnx::compression::xz_codec::decode_length().

◆ low

std::array< std::array< std::uint16_t, 8U >, position_state_count > rpnx::compression::xz_codec::lzma_model::length_model::low {}

Low-range trees by position state.

Definition at line 58 of file xz.hpp.

Referenced by rpnx::compression::xz_codec::decode_length().

◆ mid

std::array< std::array< std::uint16_t, 8U >, position_state_count > rpnx::compression::xz_codec::lzma_model::length_model::mid {}

Middle-range trees by position state.

Definition at line 59 of file xz.hpp.

Referenced by rpnx::compression::xz_codec::decode_length().


The documentation for this struct was generated from the following file: