Rizin
unix-like reverse engineering framework and cli tools
|
Delta filter encoder. More...
Go to the source code of this file.
Functions | |
static void | copy_and_encode (lzma_delta_coder *coder, const uint8_t *restrict in, uint8_t *restrict out, size_t size) |
static void | encode_in_place (lzma_delta_coder *coder, uint8_t *buffer, size_t size) |
static lzma_ret | delta_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 lzma_ret | delta_encoder_update (void *coder_ptr, const lzma_allocator *allocator, const lzma_filter *filters_null lzma_attribute((__unused__)), const lzma_filter *reversed_filters) |
lzma_ret | lzma_delta_encoder_init (lzma_next_coder *next, const lzma_allocator *allocator, const lzma_filter_info *filters) |
lzma_ret | lzma_delta_props_encode (const void *options, uint8_t *out) |
Delta filter encoder.
Definition in file delta_encoder.c.
|
static |
Copies and encodes the data at the same time. This is used when Delta is the first filter in the chain (and thus the last filter in the encoder's filter stack).
Definition at line 21 of file delta_encoder.c.
References lzma_delta_coder::distance, lzma_delta_coder::history, i, in, out, lzma_delta_coder::pos, and autogen_x86imm::tmp.
Referenced by delta_encode().
|
static |
Definition at line 52 of file delta_encoder.c.
References test-lz4-speed::action, allocator, lzma_next_coder_s::code, lzma_next_coder_s::coder, copy_and_encode(), encode_in_place(), in, in_pos, in_size, LZMA_OK, LZMA_RUN, LZMA_STREAM_END, my_min, lzma_delta_coder::next, NULL, out, and out_pos.
Referenced by lzma_delta_encoder_init().
|
static |
Definition at line 89 of file delta_encoder.c.
References allocator, lzma_next_filter_update(), and lzma_delta_coder::next.
Referenced by lzma_delta_encoder_init().
|
static |
Encodes the data in place. This is used when we are the last filter in the chain (and thus non-last filter in the encoder's filter stack).
Definition at line 38 of file delta_encoder.c.
References lzma_delta_coder::distance, lzma_delta_coder::history, i, lzma_delta_coder::pos, and autogen_x86imm::tmp.
Referenced by delta_encode().
lzma_ret lzma_delta_encoder_init | ( | lzma_next_coder * | next, |
const lzma_allocator * | allocator, | ||
const lzma_filter_info * | filters | ||
) |
Definition at line 104 of file delta_encoder.c.
References allocator, lzma_next_coder_s::code, delta_encode(), delta_encoder_update(), filters, lzma_delta_coder_init(), and lzma_next_coder_s::update.
Definition at line 114 of file delta_encoder.c.
References lzma_options_delta::dist, lzma_delta_coder_memusage(), LZMA_DELTA_DIST_MIN, LZMA_OK, LZMA_PROG_ERROR, options, out, and UINT64_MAX.