Rizin
unix-like reverse engineering framework and cli tools
|
Encodes .xz Blocks. More...
Go to the source code of this file.
Classes | |
struct | lzma_block_coder |
Functions | |
static lzma_ret | block_encode (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_encoder_end (void *coder_ptr, const lzma_allocator *allocator) |
static lzma_ret | block_encoder_update (void *coder_ptr, const lzma_allocator *allocator, const lzma_filter *filters lzma_attribute((__unused__)), const lzma_filter *reversed_filters) |
lzma_ret | lzma_block_encoder_init (lzma_next_coder *next, const lzma_allocator *allocator, lzma_block *block) |
LZMA_API (lzma_ret) | |
Encodes .xz Blocks.
Definition in file block_encoder.c.
|
static |
Definition at line 48 of file block_encoder.c.
References test-lz4-speed::action, allocator, assert(), lzma_block_coder::block, lzma_check_state::buffer, lzma_block::check, lzma_block_coder::check, lzma_next_coder_s::code, lzma_next_coder_s::coder, lzma_block::compressed_size, lzma_block_coder::compressed_size, COMPRESSED_SIZE_MAX, in, in_pos, in_size, lzma_bufcpy(), lzma_check_finish(), LZMA_CHECK_NONE, lzma_check_update(), LZMA_DATA_ERROR, LZMA_FINISH, LZMA_OK, LZMA_PROG_ERROR, LZMA_STREAM_END, LZMA_SYNC_FLUSH, LZMA_VLI_MAX, memcpy(), lzma_block_coder::next, out, out_pos, lzma_block_coder::pos, lzma_block::raw_check, lzma_block_coder::sequence, lzma_check_state::u8, lzma_block::uncompressed_size, and lzma_block_coder::uncompressed_size.
Referenced by lzma_block_encoder_init().
|
static |
Definition at line 139 of file block_encoder.c.
References allocator, lzma_free(), lzma_next_end(), and lzma_block_coder::next.
Referenced by lzma_block_encoder_init().
|
static |
Definition at line 149 of file block_encoder.c.
References allocator, lzma_next_filter_update(), LZMA_PROG_ERROR, lzma_block_coder::next, and lzma_block_coder::sequence.
Referenced by lzma_block_encoder_init().
LZMA_API | ( | lzma_ret | ) |
Definition at line 214 of file block_encoder.c.
References lzma_stream::internal, lzma_block_encoder_init(), LZMA_FINISH, lzma_next_strm_init, LZMA_OK, LZMA_RUN, strm, and lzma_internal_s::supported_actions.
lzma_ret lzma_block_encoder_init | ( | lzma_next_coder * | next, |
const lzma_allocator * | allocator, | ||
lzma_block * | block | ||
) |
Definition at line 164 of file block_encoder.c.
References allocator, lzma_block_coder::block, block_encode(), block_encoder_end(), block_encoder_update(), lzma_block::check, lzma_block_coder::check, lzma_next_coder_s::code, lzma_next_coder_s::coder, lzma_block_coder::compressed_size, lzma_next_coder_s::end, lzma_block::filters, lzma_alloc(), LZMA_CHECK_ID_MAX, lzma_check_init(), LZMA_MEM_ERROR, LZMA_NEXT_CODER_INIT, lzma_next_coder_init, LZMA_OPTIONS_ERROR, LZMA_PROG_ERROR, lzma_raw_encoder_init(), LZMA_UNSUPPORTED_CHECK, lzma_block_coder::next, NULL, lzma_block_coder::pos, lzma_block_coder::sequence, lzma_block_coder::uncompressed_size, lzma_next_coder_s::update, and lzma_block::version.
Referenced by block_encoder_init(), LZMA_API(), and worker_encode().