XZ Utils
5.2.2
|
Hold data and function pointers of the next filter in the chain. More...
#include <common.h>
Data Fields | |
lzma_coder * | coder |
Pointer to coder-specific data. More... | |
lzma_vli | id |
uintptr_t | init |
lzma_code_function | code |
Pointer to function to do the actual coding. More... | |
lzma_end_function | end |
void(* | get_progress )(lzma_coder *coder, uint64_t *progress_in, uint64_t *progress_out) |
lzma_check(* | get_check )(const lzma_coder *coder) |
lzma_ret(* | memconfig )(lzma_coder *coder, uint64_t *memusage, uint64_t *old_memlimit, uint64_t new_memlimit) |
lzma_ret(* | update )(lzma_coder *coder, const lzma_allocator *allocator, const lzma_filter *filters, const lzma_filter *reversed_filters) |
Hold data and function pointers of the next filter in the chain.
lzma_coder* lzma_next_coder_s::coder |
Pointer to coder-specific data.
Referenced by copy_or_code(), encode_in_place(), fill_window(), get_options(), lzma_block_buffer_bound(), lzma_block_buffer_decode(), lzma_code(), lzma_filters_update(), lzma_get_check(), lzma_get_progress(), lzma_memlimit_get(), lzma_memlimit_set(), lzma_memusage(), lzma_next_end(), lzma_next_filter_update(), lzma_raw_buffer_decode(), lzma_raw_buffer_encode(), lzma_stream_buffer_decode(), wait_for_work(), and worker_error().
lzma_vli lzma_next_coder_s::id |
Filter ID. This is LZMA_VLI_UNKNOWN when this structure doesn't point to a filter coder.
Referenced by lzma_next_filter_init(), and lzma_next_filter_update().
uintptr_t lzma_next_coder_s::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.
Referenced by lzma_next_end().
lzma_code_function lzma_next_coder_s::code |
Pointer to function to do the actual coding.
Referenced by copy_or_code(), encode_in_place(), fill_window(), get_options(), lzma_block_buffer_bound(), lzma_block_buffer_decode(), lzma_code(), lzma_raw_buffer_decode(), lzma_raw_buffer_encode(), lzma_stream_buffer_decode(), wait_for_work(), and worker_error().
lzma_end_function lzma_next_coder_s::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.
Referenced by copy_or_code(), fill_window(), get_options(), and lzma_next_end().
void(* lzma_next_coder_s::get_progress) (lzma_coder *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.
Referenced by get_options(), and lzma_get_progress().
lzma_check(* lzma_next_coder_s::get_check) (const lzma_coder *coder) |
Pointer to function to return the type of the integrity check. Most coders won't support this.
Referenced by lzma_get_check().
lzma_ret(* lzma_next_coder_s::memconfig) (lzma_coder *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.
Referenced by lzma_memlimit_get(), lzma_memlimit_set(), lzma_memusage(), and lzma_stream_buffer_decode().
lzma_ret(* lzma_next_coder_s::update) (lzma_coder *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.
Referenced by copy_or_code(), encode_in_place(), fill_window(), lzma_filters_update(), and lzma_next_filter_update().