Rizin
unix-like reverse engineering framework and cli tools
|
LZ out window. More...
#include "common.h"
Go to the source code of this file.
Classes | |
struct | lzma_dict |
struct | lzma_lz_options |
struct | lzma_lz_decoder |
Macros | |
#define | LZMA_LZ_DECODER_INIT |
LZ out window.
Definition in file lz_decoder.h.
#define LZMA_LZ_DECODER_INIT |
Definition at line 74 of file lz_decoder.h.
Get a byte from the history buffer.
Definition at line 103 of file lz_decoder.h.
References lzma_dict::buf, lzma_dict::pos, and lzma_dict::size.
Referenced by dict_repeat(), and lzma_decode().
|
inlinestatic |
Validate the match distance.
Definition at line 120 of file lz_decoder.h.
References lzma_dict::full.
Referenced by lzma_decode().
Test if dictionary is empty.
Definition at line 112 of file lz_decoder.h.
References lzma_dict::full.
Puts one byte into the dictionary. Returns true if the dictionary was already full and the byte couldn't be added.
Definition at line 187 of file lz_decoder.h.
References lzma_dict::buf, lzma_dict::full, lzma_dict::limit, lzma_dict::pos, and unlikely.
Referenced by lzma_decode().
Repeat *len bytes at distance.
Definition at line 128 of file lz_decoder.h.
References assert(), lzma_dict::buf, dict_get(), lzma_dict::full, len, lzma_dict::limit, memcpy(), my_min, pos, lzma_dict::pos, lzma_dict::size, and unlikely.
Referenced by lzma_decode().
|
inlinestatic |
Definition at line 228 of file lz_decoder.h.
References lzma_dict::need_reset.
Referenced by lzma2_decode().
|
inlinestatic |
Copies arbitrary amount of data into the dictionary.
Definition at line 203 of file lz_decoder.h.
References in, in_pos, in_size, and lzma_bufcpy().
Referenced by lzma2_decode().
lzma_ret lzma_lz_decoder_init | ( | lzma_next_coder * | next, |
const lzma_allocator * | allocator, | ||
const lzma_filter_info * | filters, | ||
lzma_ret(*)(lzma_lz_decoder *lz, const lzma_allocator *allocator, const void *options, lzma_lz_options *lz_options) | lz_init | ||
) |
Definition at line 212 of file lz_decoder.c.
References allocator, lzma_dict::buf, lzma_next_coder_s::code, lzma_next_coder_s::coder, lzma_coder::dict, lzma_lz_options::dict_size, lzma_next_coder_s::end, filters, lzma_dict::full, lzma_coder::lz, lz_decode(), lz_decoder_end(), lz_decoder_reset(), lzma_alloc(), lzma_free(), LZMA_LZ_DECODER_INIT, LZMA_MEM_ERROR, LZMA_NEXT_CODER_INIT, lzma_next_filter_init(), memcpy(), my_min, lzma_coder::next, lzma_coder::next_finished, NULL, lzma_filter::options, lzma_coder::pos, lzma_dict::pos, lzma_lz_options::preset_dict, lzma_lz_options::preset_dict_size, return_if_error, lzma_coder::size, lzma_dict::size, SIZE_MAX, lzma_coder::temp, and lzma_coder::this_finished.
Referenced by lzma_lzma2_decoder_init(), and lzma_lzma_decoder_init().
void lzma_lz_decoder_uncompressed | ( | void * | coder, |
lzma_vli | uncompressed_size | ||
) |
Definition at line 307 of file lz_decoder.c.
References lzma_lz_decoder::coder, lzma_coder::lz, lzma_lz_decoder::set_uncompressed, and uncompressed_size.
Referenced by alone_decode().