Rizin
unix-like reverse engineering framework and cli tools
|
Encoder for LZMA_Alone files. More...
Go to the source code of this file.
Classes | |
struct | lzma_alone_coder |
Macros | |
#define | ALONE_HEADER_SIZE (1 + 4 + 8) |
Functions | |
static lzma_ret | alone_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 | alone_encoder_end (void *coder_ptr, const lzma_allocator *allocator) |
static lzma_ret | alone_encoder_init (lzma_next_coder *next, const lzma_allocator *allocator, const lzma_options_lzma *options) |
LZMA_API (lzma_ret) | |
Encoder for LZMA_Alone files.
Definition in file alone_encoder.c.
#define ALONE_HEADER_SIZE (1 + 4 + 8) |
Definition at line 17 of file alone_encoder.c.
|
static |
Definition at line 34 of file alone_encoder.c.
References test-lz4-speed::action, allocator, ALONE_HEADER_SIZE, assert(), lzma_next_coder_s::code, lzma_next_coder_s::coder, lzma_alone_coder::header, lzma_alone_coder::header_pos, in, in_pos, in_size, lzma_bufcpy(), LZMA_OK, LZMA_PROG_ERROR, lzma_alone_coder::next, out, out_pos, and lzma_alone_coder::sequence.
Referenced by alone_encoder_init().
|
static |
Definition at line 69 of file alone_encoder.c.
References allocator, lzma_free(), lzma_next_end(), and lzma_alone_coder::next.
Referenced by alone_encoder_init().
|
static |
Definition at line 80 of file alone_encoder.c.
References allocator, alone_encode(), alone_encoder_end(), lzma_next_coder_s::code, lzma_next_coder_s::coder, d, lzma_next_coder_s::end, filters, lzma_alone_coder::header, lzma_alone_coder::header_pos, lzma_alloc(), LZMA_DICT_SIZE_MIN, lzma_lzma_encoder_init(), lzma_lzma_lclppb_encode(), LZMA_MEM_ERROR, LZMA_NEXT_CODER_INIT, lzma_next_coder_init, lzma_next_filter_init(), LZMA_OPTIONS_ERROR, memset(), lzma_alone_coder::next, NULL, options, lzma_alone_coder::sequence, UINT32_MAX, and write32le.
Referenced by LZMA_API().
LZMA_API | ( | lzma_ret | ) |
Definition at line 153 of file alone_encoder.c.
References alone_encoder_init(), lzma_stream::internal, LZMA_FINISH, lzma_next_strm_init, LZMA_OK, LZMA_RUN, options, strm, and lzma_internal_s::supported_actions.