Rizin
unix-like reverse engineering framework and cli tools
|
Autodetect between .xz Stream and .lzma (LZMA_Alone) formats. More...
Go to the source code of this file.
Classes | |
struct | lzma_auto_coder |
Functions | |
static lzma_ret | auto_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 | auto_decoder_end (void *coder_ptr, const lzma_allocator *allocator) |
static lzma_check | auto_decoder_get_check (const void *coder_ptr) |
static lzma_ret | auto_decoder_memconfig (void *coder_ptr, uint64_t *memusage, uint64_t *old_memlimit, uint64_t new_memlimit) |
static lzma_ret | auto_decoder_init (lzma_next_coder *next, const lzma_allocator *allocator, uint64_t memlimit, uint32_t flags) |
LZMA_API (lzma_ret) | |
Autodetect between .xz Stream and .lzma (LZMA_Alone) formats.
Definition in file auto_decoder.c.
|
static |
Definition at line 33 of file auto_decoder.c.
References test-lz4-speed::action, allocator, assert(), lzma_next_coder_s::code, lzma_next_coder_s::coder, lzma_auto_coder::flags, in, in_pos, in_size, lzma_alone_decoder_init(), LZMA_CONCATENATED, LZMA_DATA_ERROR, LZMA_FINISH, LZMA_GET_CHECK, LZMA_NO_CHECK, LZMA_OK, LZMA_PROG_ERROR, lzma_stream_decoder_init(), LZMA_STREAM_END, LZMA_TELL_ANY_CHECK, LZMA_TELL_NO_CHECK, lzma_auto_coder::memlimit, lzma_auto_coder::next, out, out_pos, return_if_error, and lzma_auto_coder::sequence.
Referenced by auto_decoder_init().
|
static |
Definition at line 105 of file auto_decoder.c.
References allocator, lzma_free(), lzma_next_end(), and lzma_auto_coder::next.
Referenced by auto_decoder_init().
|
static |
Definition at line 115 of file auto_decoder.c.
References lzma_next_coder_s::coder, lzma_next_coder_s::get_check, LZMA_CHECK_NONE, lzma_auto_coder::next, and NULL.
Referenced by auto_decoder_init().
|
static |
Definition at line 156 of file auto_decoder.c.
References allocator, auto_decode(), auto_decoder_end(), auto_decoder_get_check(), auto_decoder_memconfig(), lzma_next_coder_s::code, lzma_next_coder_s::coder, lzma_next_coder_s::end, flags, lzma_auto_coder::flags, lzma_next_coder_s::get_check, lzma_alloc(), LZMA_MEM_ERROR, LZMA_NEXT_CODER_INIT, lzma_next_coder_init, LZMA_OK, LZMA_OPTIONS_ERROR, LZMA_SUPPORTED_FLAGS, lzma_next_coder_s::memconfig, memlimit, lzma_auto_coder::memlimit, my_max, lzma_auto_coder::next, NULL, and lzma_auto_coder::sequence.
Referenced by LZMA_API().
|
static |
Definition at line 126 of file auto_decoder.c.
References assert(), lzma_next_coder_s::coder, LZMA_MEMLIMIT_ERROR, LZMA_MEMUSAGE_BASE, LZMA_OK, lzma_next_coder_s::memconfig, lzma_auto_coder::memlimit, lzma_auto_coder::next, and NULL.
Referenced by auto_decoder_init().
LZMA_API | ( | lzma_ret | ) |
Definition at line 186 of file auto_decoder.c.
References auto_decoder_init(), flags, lzma_stream::internal, LZMA_FINISH, lzma_next_strm_init, LZMA_OK, LZMA_RUN, memlimit, strm, and lzma_internal_s::supported_actions.