Rizin
unix-like reverse engineering framework and cli tools
|
LZ out window. More...
#include "lz_decoder.h"
Go to the source code of this file.
Classes | |
struct | lzma_coder |
Functions | |
static void | lz_decoder_reset (lzma_coder *coder) |
static lzma_ret | decode_buffer (lzma_coder *coder, const uint8_t *restrict in, size_t *restrict in_pos, size_t in_size, uint8_t *restrict out, size_t *restrict out_pos, size_t out_size) |
static lzma_ret | lz_decode (void *coder_ptr, const lzma_allocator *allocator, const uint8_t *restrict in, size_t *restrict in_pos, size_t in_size, uint8_t *restrict out, size_t *restrict out_pos, size_t out_size, lzma_action action) |
static void | lz_decoder_end (void *coder_ptr, const lzma_allocator *allocator) |
lzma_ret | lzma_lz_decoder_init (lzma_next_coder *next, const lzma_allocator *allocator, const lzma_filter_info *filters, lzma_ret(*lz_init)(lzma_lz_decoder *lz, const lzma_allocator *allocator, const void *options, lzma_lz_options *lz_options)) |
uint64_t | lzma_lz_decoder_memusage (size_t dictionary_size) |
void | lzma_lz_decoder_uncompressed (void *coder_ptr, lzma_vli uncompressed_size) |
LZ out window.
Definition in file lz_decoder.c.
|
static |
Definition at line 66 of file lz_decoder.c.
References assert(), lzma_dict::buf, lzma_lz_decoder::code, lzma_lz_decoder::coder, lzma_coder::dict, in, in_pos, in_size, lzma_dict::limit, lzma_coder::lz, lz_decoder_reset(), LZMA_OK, memcpy(), my_min, lzma_dict::need_reset, out, out_pos, lzma_dict::pos, and lzma_dict::size.
Referenced by lz_decode().
|
static |
Definition at line 134 of file lz_decoder.c.
References test-lz4-speed::action, allocator, lzma_coder::buffer, lzma_next_coder_s::code, lzma_next_coder_s::coder, decode_buffer(), in, in_pos, in_size, LZMA_BUFFER_SIZE, LZMA_DATA_ERROR, LZMA_OK, LZMA_STREAM_END, lzma_coder::next, lzma_coder::next_finished, NULL, out, out_pos, lzma_coder::pos, lzma_coder::size, lzma_coder::temp, and lzma_coder::this_finished.
Referenced by lzma_lz_decoder_init().
|
static |
Definition at line 194 of file lz_decoder.c.
References allocator, lzma_dict::buf, lzma_lz_decoder::coder, lzma_coder::dict, lzma_lz_decoder::end, lzma_coder::lz, lzma_free(), lzma_next_end(), lzma_coder::next, and NULL.
Referenced by lzma_lz_decoder_init().
|
static |
Definition at line 55 of file lz_decoder.c.
References lzma_dict::buf, lzma_coder::dict, lzma_dict::full, lzma_dict::need_reset, lzma_dict::pos, and lzma_dict::size.
Referenced by decode_buffer(), and lzma_lz_decoder_init().
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_ptr, |
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().