const lzma_allocator * allocator
const lzma_filter * filters
#define LZMA_DELTA_DIST_MIN
#define LZMA_DELTA_DIST_MAX
static void delta_coder_end(void *coder_ptr, const lzma_allocator *allocator)
uint64_t lzma_delta_coder_memusage(const void *options)
lzma_ret lzma_delta_coder_init(lzma_next_coder *next, const lzma_allocator *allocator, const lzma_filter_info *filters)
Common stuff for Delta encoder and decoder.
Private common stuff for Delta encoder and decoder.
static const char struct stat static buf struct stat static buf static vhangup int options
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.
void * options
Pointer to filter-specific options structure.
Hold data and function pointers of the next filter in the chain.
void * coder
Pointer to coder-specific data.
Options for the Delta filter.
uint32_t dist
Delta distance.
#define LZMA_NEXT_CODER_INIT
Macro to initialize lzma_next_coder structure.
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_ret lzma_next_filter_init(lzma_next_coder *next, const lzma_allocator *allocator, const lzma_filter_info *filters)
void lzma_free(void *ptr, const lzma_allocator *allocator)
Frees memory.
void lzma_next_end(lzma_next_coder *next, const lzma_allocator *allocator)