20 const size_t distance = coder->
distance;
22 for (
size_t i = 0;
i <
size; ++
i) {
39 const size_t out_start = *
out_pos;
const lzma_allocator const uint8_t size_t uint8_t size_t * out_pos
const lzma_allocator const uint8_t size_t * in_pos
const lzma_allocator const uint8_t size_t in_size
const lzma_allocator * allocator
const lzma_allocator const uint8_t * in
const lzma_allocator const uint8_t size_t uint8_t * out
const lzma_filter * filters
lzma_ret lzma_delta_coder_init(lzma_next_coder *next, const lzma_allocator *allocator, const lzma_filter_info *filters)
static void decode_buffer(lzma_delta_coder *coder, uint8_t *buffer, size_t size)
lzma_ret lzma_delta_props_decode(void **options, const lzma_allocator *allocator, const uint8_t *props, size_t props_size)
lzma_ret lzma_delta_decoder_init(lzma_next_coder *next, const lzma_allocator *allocator, const lzma_filter_info *filters)
static lzma_ret delta_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)
Private common stuff for Delta encoder and decoder.
const lzma_allocator const uint8_t * props
static const char struct stat static buf struct stat static buf static vhangup int options
assert(limit<=UINT32_MAX/2)
Custom functions for memory handling.
lzma_next_coder next
Next coder in the chain.
uint8_t pos
Position in history[].
uint8_t history[LZMA_DELTA_DIST_MAX]
Buffer to hold history of the original data.
size_t distance
Delta distance.
Hold data and function pointers of the next filter in the chain.
lzma_code_function code
Pointer to function to do the actual coding.
void * coder
Pointer to coder-specific data.
Options for the Delta filter.
uint32_t dist
Delta distance.
void * lzma_alloc(size_t size, const lzma_allocator *allocator) lzma_attribute((__malloc__)) lzma_attr_alloc_size(1)
Allocates memory.
lzma_ret
Return values used by several functions in liblzma.
@ LZMA_MEM_ERROR
Cannot allocate memory.
@ LZMA_OPTIONS_ERROR
Invalid or unsupported options.
@ LZMA_OK
Operation completed successfully.
lzma_action
The ‘action’ argument for lzma_code()