Rizin
unix-like reverse engineering framework and cli tools
|
Decodes .xz Streams. More...
Go to the source code of this file.
Classes | |
struct | lzma_stream_coder |
Functions | |
static lzma_ret | stream_decoder_reset (lzma_stream_coder *coder, const lzma_allocator *allocator) |
static lzma_ret | stream_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 | stream_decoder_end (void *coder_ptr, const lzma_allocator *allocator) |
static lzma_check | stream_decoder_get_check (const void *coder_ptr) |
static lzma_ret | stream_decoder_memconfig (void *coder_ptr, uint64_t *memusage, uint64_t *old_memlimit, uint64_t new_memlimit) |
lzma_ret | lzma_stream_decoder_init (lzma_next_coder *next, const lzma_allocator *allocator, uint64_t memlimit, uint32_t flags) |
LZMA_API (lzma_ret) | |
Decodes .xz Streams.
Definition in file stream_decoder.c.
LZMA_API | ( | lzma_ret | ) |
Definition at line 458 of file stream_decoder.c.
References flags, lzma_stream::internal, LZMA_FINISH, lzma_next_strm_init, LZMA_OK, LZMA_RUN, lzma_stream_decoder_init(), memlimit, strm, and lzma_internal_s::supported_actions.
lzma_ret lzma_stream_decoder_init | ( | lzma_next_coder * | next, |
const lzma_allocator * | allocator, | ||
uint64_t | memlimit, | ||
uint32_t | flags | ||
) |
Definition at line 419 of file stream_decoder.c.
References allocator, lzma_stream_coder::block_decoder, lzma_next_coder_s::code, lzma_next_coder_s::coder, lzma_stream_coder::concatenated, lzma_next_coder_s::end, lzma_stream_coder::first_stream, flags, lzma_next_coder_s::get_check, lzma_stream_coder::ignore_check, lzma_stream_coder::index_hash, lzma_alloc(), LZMA_CONCATENATED, LZMA_IGNORE_CHECK, LZMA_MEM_ERROR, LZMA_MEMUSAGE_BASE, LZMA_NEXT_CODER_INIT, lzma_next_coder_init, LZMA_OPTIONS_ERROR, LZMA_SUPPORTED_FLAGS, LZMA_TELL_ANY_CHECK, LZMA_TELL_NO_CHECK, LZMA_TELL_UNSUPPORTED_CHECK, lzma_next_coder_s::memconfig, memlimit, lzma_stream_coder::memlimit, lzma_stream_coder::memusage, my_max, NULL, stream_decode(), stream_decoder_end(), stream_decoder_get_check(), stream_decoder_memconfig(), stream_decoder_reset(), lzma_stream_coder::tell_any_check, lzma_stream_coder::tell_no_check, and lzma_stream_coder::tell_unsupported_check.
Referenced by auto_decode(), and LZMA_API().
|
static |
Definition at line 103 of file stream_decoder.c.
References test-lz4-speed::action, allocator, assert(), lzma_stream_flags::backward_size, lzma_stream_coder::block_decoder, lzma_stream_coder::block_options, lzma_stream_coder::buffer, lzma_block::check, lzma_stream_flags::check, lzma_next_coder_s::code, lzma_next_coder_s::coder, lzma_stream_coder::concatenated, lzma_block::filters, filters, lzma_stream_coder::first_stream, lzma_block::header_size, i, lzma_block::ignore_check, lzma_stream_coder::ignore_check, in, in_pos, in_size, lzma_stream_coder::index_hash, lzma_block_decoder_init(), lzma_block_header_size_decode, lzma_bufcpy(), LZMA_CHECK_NONE, LZMA_DATA_ERROR, LZMA_FILTERS_MAX, LZMA_FINISH, LZMA_FORMAT_ERROR, lzma_free(), LZMA_GET_CHECK, LZMA_MEMLIMIT_ERROR, LZMA_NO_CHECK, LZMA_OK, LZMA_OPTIONS_ERROR, LZMA_PROG_ERROR, LZMA_STREAM_END, LZMA_STREAM_HEADER_SIZE, LZMA_UNSUPPORTED_CHECK, lzma_stream_coder::memlimit, lzma_stream_coder::memusage, NULL, options, out, out_pos, lzma_stream_coder::pos, return_if_error, lzma_stream_coder::sequence, stream_decoder_reset(), lzma_stream_coder::stream_flags, lzma_stream_coder::tell_any_check, lzma_stream_coder::tell_no_check, lzma_stream_coder::tell_unsupported_check, UINT64_MAX, lzma_block::uncompressed_size, and lzma_block::version.
Referenced by lzma_stream_decoder_init().
|
static |
Definition at line 380 of file stream_decoder.c.
References allocator, lzma_stream_coder::block_decoder, lzma_stream_coder::index_hash, lzma_free(), and lzma_next_end().
Referenced by lzma_stream_decoder_init().
|
static |
Definition at line 391 of file stream_decoder.c.
References lzma_stream_flags::check, and lzma_stream_coder::stream_flags.
Referenced by lzma_stream_decoder_init().
|
static |
Definition at line 399 of file stream_decoder.c.
References LZMA_MEMLIMIT_ERROR, LZMA_OK, lzma_stream_coder::memlimit, and lzma_stream_coder::memusage.
Referenced by lzma_stream_decoder_init().
|
static |
Definition at line 87 of file stream_decoder.c.
References allocator, lzma_stream_coder::index_hash, LZMA_MEM_ERROR, LZMA_OK, NULL, lzma_stream_coder::pos, and lzma_stream_coder::sequence.
Referenced by lzma_stream_decoder_init(), and stream_decode().