Rizin
unix-like reverse engineering framework and cli tools
lzma_dict Struct Reference

#include <lz_decoder.h>

Public Attributes

uint8_tbuf
 
size_t pos
 
size_t full
 
size_t limit
 Write limit. More...
 
size_t size
 Size of the dictionary. More...
 
bool need_reset
 True when dictionary should be reset before decoding more data. More...
 

Detailed Description

Definition at line 20 of file lz_decoder.h.

Member Data Documentation

◆ buf

uint8_t* lzma_dict::buf

Pointer to the dictionary buffer. It can be an allocated buffer internal to liblzma, or it can a be a buffer given by the application when in single-call mode (not implemented yet).

Definition at line 24 of file lz_decoder.h.

Referenced by decode_buffer(), dict_get(), dict_put(), dict_repeat(), lz_decoder_end(), lz_decoder_reset(), and lzma_lz_decoder_init().

◆ full

size_t lzma_dict::full

Indicates how full the dictionary is. This is used by dict_is_distance_valid() to detect corrupt files that would read beyond the beginning of the dictionary.

Definition at line 33 of file lz_decoder.h.

Referenced by dict_is_distance_valid(), dict_is_empty(), dict_put(), dict_repeat(), lz_decoder_reset(), lzma_decode(), and lzma_lz_decoder_init().

◆ limit

size_t lzma_dict::limit

Write limit.

Definition at line 36 of file lz_decoder.h.

Referenced by decode_buffer(), dict_put(), dict_repeat(), and lzma_decode().

◆ need_reset

bool lzma_dict::need_reset

True when dictionary should be reset before decoding more data.

Definition at line 42 of file lz_decoder.h.

Referenced by decode_buffer(), dict_reset(), and lz_decoder_reset().

◆ pos

size_t lzma_dict::pos

Write position in dictionary. The next byte will be written to buf[pos].

Definition at line 28 of file lz_decoder.h.

Referenced by cmd_descs_generate.CmdDesc::_validate(), decode_buffer(), dict_get(), dict_put(), dict_repeat(), lz_decoder_reset(), lzma_decode(), and lzma_lz_decoder_init().

◆ size

size_t lzma_dict::size

Size of the dictionary.

Definition at line 39 of file lz_decoder.h.

Referenced by decode_buffer(), dict_get(), dict_repeat(), lz_decoder_reset(), and lzma_lz_decoder_init().


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