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

LZ in window and match finder API. More...

#include "common.h"

Go to the source code of this file.

Data Structures

struct  lzma_match
 
struct  lzma_mf_s
 
struct  lzma_lz_options
 
struct  lzma_lz_encoder
 

Macros

#define IS_ENC_DICT_SIZE_VALID(size)
 
#define mf_find   lzma_mf_find
 Since everything else begins with mf_, use it also for lzma_mf_find().
 

Functions

lzma_ret lzma_lz_encoder_init (lzma_next_coder *next, const lzma_allocator *allocator, const lzma_filter_info *filters, lzma_ret(*lz_init)(lzma_lz_encoder *lz, const lzma_allocator *allocator, lzma_vli id, const void *options, lzma_lz_options *lz_options))
 
uint64_t lzma_lz_encoder_memusage (const lzma_lz_options *lz_options)
 
uint32_t lzma_mf_find (lzma_mf *mf, uint32_t *count, lzma_match *matches)
 Find matches starting from the current byte.
 
uint32_t lzma_mf_hc3_find (lzma_mf *dict, lzma_match *matches)
 
void lzma_mf_hc3_skip (lzma_mf *dict, uint32_t amount)
 
uint32_t lzma_mf_hc4_find (lzma_mf *dict, lzma_match *matches)
 
void lzma_mf_hc4_skip (lzma_mf *dict, uint32_t amount)
 
uint32_t lzma_mf_bt2_find (lzma_mf *dict, lzma_match *matches)
 
void lzma_mf_bt2_skip (lzma_mf *dict, uint32_t amount)
 
uint32_t lzma_mf_bt3_find (lzma_mf *dict, lzma_match *matches)
 
void lzma_mf_bt3_skip (lzma_mf *dict, uint32_t amount)
 
uint32_t lzma_mf_bt4_find (lzma_mf *dict, lzma_match *matches)
 
void lzma_mf_bt4_skip (lzma_mf *dict, uint32_t amount)
 

Detailed Description

LZ in window and match finder API.

Macro Definition Documentation

◆ IS_ENC_DICT_SIZE_VALID

#define IS_ENC_DICT_SIZE_VALID ( size)
Value:
&& (size) <= (UINT32_C(1) << 30) + (UINT32_C(1) << 29))
size_t size
Definition platform.h:559
#define LZMA_DICT_SIZE_MIN
Definition lzma12.h:218
#define UINT32_C(n)
Definition lzma.h:139

◆ mf_find

#define mf_find   lzma_mf_find

Since everything else begins with mf_, use it also for lzma_mf_find().

Function Documentation

◆ lzma_lz_encoder_init()

lzma_ret lzma_lz_encoder_init ( lzma_next_coder * next,
const lzma_allocator * allocator,
const lzma_filter_info * filters,
lzma_ret(* lz_init )(lzma_lz_encoder *lz, const lzma_allocator *allocator, lzma_vli id, const void *options, lzma_lz_options *lz_options) )
extern

◆ lzma_lz_encoder_memusage()

uint64_t lzma_lz_encoder_memusage ( const lzma_lz_options * lz_options)
extern

◆ lzma_mf_bt2_find()

uint32_t lzma_mf_bt2_find ( lzma_mf * dict,
lzma_match * matches )
extern

◆ lzma_mf_bt2_skip()

void lzma_mf_bt2_skip ( lzma_mf * dict,
uint32_t amount )
extern

◆ lzma_mf_bt3_find()

uint32_t lzma_mf_bt3_find ( lzma_mf * dict,
lzma_match * matches )
extern

◆ lzma_mf_bt3_skip()

void lzma_mf_bt3_skip ( lzma_mf * dict,
uint32_t amount )
extern

◆ lzma_mf_bt4_find()

uint32_t lzma_mf_bt4_find ( lzma_mf * dict,
lzma_match * matches )
extern

◆ lzma_mf_bt4_skip()

void lzma_mf_bt4_skip ( lzma_mf * dict,
uint32_t amount )
extern

◆ lzma_mf_find()

uint32_t lzma_mf_find ( lzma_mf * mf,
uint32_t * count_ptr,
lzma_match * matches )
extern

Find matches starting from the current byte.

Returns
The length of the longest match found

◆ lzma_mf_hc3_find()

uint32_t lzma_mf_hc3_find ( lzma_mf * dict,
lzma_match * matches )
extern

◆ lzma_mf_hc3_skip()

void lzma_mf_hc3_skip ( lzma_mf * dict,
uint32_t amount )
extern

◆ lzma_mf_hc4_find()

uint32_t lzma_mf_hc4_find ( lzma_mf * dict,
lzma_match * matches )
extern

◆ lzma_mf_hc4_skip()

void lzma_mf_hc4_skip ( lzma_mf * dict,
uint32_t amount )
extern