Rizin
unix-like reverse engineering framework and cli tools
|
Encodes .xz Streams. More...
Go to the source code of this file.
Classes | |
struct | lzma_stream_coder |
Functions | |
static lzma_ret | block_encoder_init (lzma_stream_coder *coder, const lzma_allocator *allocator) |
static lzma_ret | stream_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 | stream_encoder_end (void *coder_ptr, const lzma_allocator *allocator) |
static lzma_ret | stream_encoder_update (void *coder_ptr, const lzma_allocator *allocator, const lzma_filter *filters, const lzma_filter *reversed_filters) |
static lzma_ret | stream_encoder_init (lzma_next_coder *next, const lzma_allocator *allocator, const lzma_filter *filters, lzma_check check) |
LZMA_API (lzma_ret) | |
Encodes .xz Streams.
Definition in file stream_encoder.c.
|
static |
Definition at line 62 of file stream_encoder.c.
References allocator, lzma_stream_coder::block_encoder, lzma_stream_coder::block_options, lzma_block::compressed_size, lzma_block_encoder_init(), LZMA_VLI_UNKNOWN, return_if_error, and lzma_block::uncompressed_size.
Referenced by stream_encode(), and stream_encoder_update().
LZMA_API | ( | lzma_ret | ) |
Definition at line 327 of file stream_encoder.c.
References check, filters, lzma_stream::internal, LZMA_FINISH, LZMA_FULL_BARRIER, LZMA_FULL_FLUSH, lzma_next_strm_init, LZMA_OK, LZMA_RUN, LZMA_SYNC_FLUSH, stream_encoder_init(), strm, and lzma_internal_s::supported_actions.
|
static |
Definition at line 81 of file stream_encoder.c.
References test-lz4-speed::action, allocator, assert(), lzma_stream_coder::block_encoder, block_encoder_init(), lzma_stream_coder::block_encoder_is_initialized, lzma_stream_coder::block_options, lzma_stream_coder::buffer, lzma_stream_coder::buffer_pos, lzma_stream_coder::buffer_size, lzma_block::check, lzma_next_coder_s::code, lzma_next_coder_s::coder, build_mig_index::convert(), lzma_block::header_size, in, in_pos, in_size, lzma_stream_coder::index, lzma_stream_coder::index_encoder, LZMA_ACTION_MAX, lzma_bufcpy(), LZMA_FINISH, lzma_index_encoder_init(), LZMA_OK, LZMA_PROG_ERROR, LZMA_RUN, LZMA_STREAM_END, LZMA_STREAM_HEADER_SIZE, LZMA_SYNC_FLUSH, NULL, out, out_pos, return_if_error, lzma_stream_coder::sequence, lzma_block::uncompressed_size, unpadded_size, and lzma_stream_flags::version.
Referenced by stream_encoder_init().
|
static |
Definition at line 214 of file stream_encoder.c.
References allocator, lzma_stream_coder::block_encoder, lzma_stream_coder::filters, i, lzma_filter::id, lzma_stream_coder::index, lzma_stream_coder::index_encoder, lzma_free(), lzma_next_end(), LZMA_VLI_UNKNOWN, and lzma_filter::options.
Referenced by stream_encoder_init().
|
static |
Definition at line 272 of file stream_encoder.c.
References allocator, lzma_stream_coder::block_encoder, lzma_stream_coder::block_options, lzma_stream_coder::buffer, lzma_stream_coder::buffer_pos, lzma_stream_coder::buffer_size, lzma_block::check, check, lzma_next_coder_s::code, lzma_next_coder_s::coder, lzma_next_coder_s::end, filters, lzma_stream_coder::filters, lzma_filter::id, lzma_stream_coder::index, lzma_stream_coder::index_encoder, lzma_alloc(), LZMA_MEM_ERROR, LZMA_NEXT_CODER_INIT, lzma_next_coder_init, LZMA_PROG_ERROR, LZMA_STREAM_HEADER_SIZE, LZMA_VLI_UNKNOWN, NULL, return_if_error, lzma_stream_coder::sequence, stream_encode(), stream_encoder_end(), stream_encoder_update(), lzma_next_coder_s::update, lzma_block::version, and lzma_stream_flags::version.
Referenced by LZMA_API().
|
static |
Definition at line 231 of file stream_encoder.c.
References allocator, lzma_stream_coder::block_encoder, block_encoder_init(), lzma_stream_coder::block_encoder_is_initialized, lzma_stream_coder::block_options, lzma_next_coder_s::coder, lzma_block::filters, filters, lzma_stream_coder::filters, i, lzma_filter::id, lzma_free(), LZMA_OK, LZMA_PROG_ERROR, LZMA_VLI_UNKNOWN, lzma_filter::options, return_if_error, lzma_stream_coder::sequence, and lzma_next_coder_s::update.
Referenced by stream_encoder_init().