Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
lzma_next_coder_s Struct Reference

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)
 

Detailed Description

Hold data and function pointers of the next filter in the chain.

Field Documentation

◆ code

Pointer to function to do the actual coding.

◆ coder

void * coder

Pointer to coder-specific data.

◆ end

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.

◆ get_check

lzma_check(* get_check)(const void *coder)

Pointer to function to return the type of the integrity check. Most coders won't support this.

◆ get_progress

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.

◆ id

Filter ID. This is LZMA_VLI_UNKNOWN when this structure doesn't point to a filter coder.

◆ init

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.

◆ memconfig

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.

◆ set_out_limit

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.

◆ update

Update the filter-specific options or the whole filter chain in the encoder.


The documentation for this struct was generated from the following files: