Rizin
unix-like reverse engineering framework and cli tools
|
Decodes .xz Blocks. More...
Go to the source code of this file.
Classes | |
struct | lzma_block_coder |
Functions | |
static bool | update_size (lzma_vli *size, lzma_vli add, lzma_vli limit) |
static bool | is_size_valid (lzma_vli size, lzma_vli reference) |
static lzma_ret | block_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 | block_decoder_end (void *coder_ptr, const lzma_allocator *allocator) |
lzma_ret | lzma_block_decoder_init (lzma_next_coder *next, const lzma_allocator *allocator, lzma_block *block) |
LZMA_API (lzma_ret) | |
Decodes .xz Blocks.
Definition in file block_decoder.c.
|
static |
Definition at line 77 of file block_decoder.c.
References test-lz4-speed::action, allocator, lzma_block_coder::block, lzma_check_state::buffer, lzma_block::check, lzma_block_coder::check, lzma_block_coder::check_pos, lzma_next_coder_s::code, lzma_next_coder_s::coder, lzma_block_coder::compressed_limit, lzma_block::compressed_size, lzma_block_coder::compressed_size, lzma_block_coder::ignore_check, in, in_pos, in_size, is_size_valid(), lzma_bufcpy(), lzma_check_finish(), LZMA_CHECK_NONE, lzma_check_update(), LZMA_DATA_ERROR, LZMA_OK, LZMA_PROG_ERROR, LZMA_STREAM_END, lzma_block_coder::next, out, out_pos, lzma_block::raw_check, lzma_block_coder::sequence, lzma_check_state::u8, lzma_block::uncompressed_size, lzma_block_coder::uncompressed_size, and update_size().
Referenced by lzma_block_decoder_init().
|
static |
Definition at line 182 of file block_decoder.c.
References allocator, lzma_free(), lzma_next_end(), and lzma_block_coder::next.
Referenced by lzma_block_decoder_init().
Definition at line 70 of file block_decoder.c.
References LZMA_VLI_UNKNOWN.
Referenced by block_decode().
LZMA_API | ( | lzma_ret | ) |
Definition at line 248 of file block_decoder.c.
References lzma_stream::internal, lzma_block_decoder_init(), LZMA_FINISH, lzma_next_strm_init, LZMA_OK, LZMA_RUN, strm, and lzma_internal_s::supported_actions.
lzma_ret lzma_block_decoder_init | ( | lzma_next_coder * | next, |
const lzma_allocator * | allocator, | ||
lzma_block * | block | ||
) |
Definition at line 192 of file block_decoder.c.
References allocator, lzma_block_coder::block, block_decode(), block_decoder_end(), lzma_block::check, lzma_block_coder::check, lzma_block_coder::check_pos, lzma_next_coder_s::code, lzma_next_coder_s::coder, lzma_block_coder::compressed_limit, lzma_block::compressed_size, lzma_block_coder::compressed_size, lzma_next_coder_s::end, lzma_block::filters, lzma_block::header_size, lzma_block::ignore_check, lzma_block_coder::ignore_check, lzma_alloc(), lzma_check_init(), LZMA_MEM_ERROR, LZMA_NEXT_CODER_INIT, lzma_next_coder_init, LZMA_PROG_ERROR, lzma_raw_decoder_init(), LZMA_VLI_C, lzma_vli_is_valid, LZMA_VLI_MAX, LZMA_VLI_UNKNOWN, lzma_block_coder::next, NULL, lzma_block_coder::sequence, lzma_block::uncompressed_size, lzma_block_coder::uncompressed_size, and lzma_block::version.
Referenced by LZMA_API(), and stream_decode().
Definition at line 55 of file block_decoder.c.
References add(), limit, and LZMA_VLI_MAX.
Referenced by block_decode().