![]() |
Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
|
Hold data and function pointers of the next filter in the chain. More...
#include <common.h>
Data Fields | |
void * | coder |
Pointer to coder-specific data. | |
lzma_vli | id |
uintptr_t | init |
lzma_code_function | code |
Pointer to function to do the actual coding. | |
lzma_end_function | end |
void(* | get_progress )(void *coder, uint64_t *progress_in, uint64_t *progress_out) |
lzma_check(* | get_check )(const void *coder) |
lzma_ret(* | memconfig )(void *coder, uint64_t *memusage, uint64_t *old_memlimit, uint64_t new_memlimit) |
lzma_ret(* | update )(void *coder, const lzma_allocator *allocator, const lzma_filter *filters, const lzma_filter *reversed_filters) |
lzma_ret(* | set_out_limit )(void *coder, uint64_t *uncomp_size, uint64_t out_limit) |
Hold data and function pointers of the next filter in the chain.
Pointer to function to do the actual coding.
void * coder |
Pointer to coder-specific data.
Pointer to function to free lzma_next_coder.coder. This can be NULL; in that case, lzma_free is called to free lzma_next_coder.coder.
lzma_check(* get_check)(const void *coder) |
Pointer to function to return the type of the integrity check. Most coders won't support this.
void(* get_progress)(void *coder, uint64_t *progress_in, uint64_t *progress_out) |
Pointer to a function to get progress information. If this is NULL, lzma_stream.total_in and .total_out are used instead.
lzma_vli id |
Filter ID. This is LZMA_VLI_UNKNOWN when this structure doesn't point to a filter coder.
uintptr_t init |
"Pointer" to init function. This is never called here. We need only to detect if we are initializing a coder that was allocated earlier. See lzma_next_coder_init and lzma_next_strm_init macros in this file.
lzma_ret(* memconfig)(void *coder, uint64_t *memusage, uint64_t *old_memlimit, uint64_t new_memlimit) |
Pointer to function to get and/or change the memory usage limit. If new_memlimit == 0, the limit is not changed.
lzma_ret(* set_out_limit)(void *coder, uint64_t *uncomp_size, uint64_t out_limit) |
Set how many bytes of output this coder may produce at maximum. On success LZMA_OK must be returned. If the filter chain as a whole cannot support this feature, this must return LZMA_OPTIONS_ERROR. If no input has been given to the coder and the requested limit is too small, this must return LZMA_BUF_ERROR. If input has been seen, LZMA_OK is allowed too.
lzma_ret(* update)(void *coder, const lzma_allocator *allocator, const lzma_filter *filters, const lzma_filter *reversed_filters) |
Update the filter-specific options or the whole filter chain in the encoder.