Rizin
unix-like reverse engineering framework and cli tools
lzma12.h
Go to the documentation of this file.
1 
6 /*
7  * Author: Lasse Collin
8  *
9  * This file has been put into the public domain.
10  * You can do whatever you want with this file.
11  *
12  * See ../lzma.h for information about liblzma as a whole.
13  */
14 
15 #ifndef LZMA_H_INTERNAL
16 # error Never include this file directly. Use <lzma.h> instead.
17 #endif
18 
19 
30 #define LZMA_FILTER_LZMA1 LZMA_VLI_C(0x4000000000000001)
31 
40 #define LZMA_FILTER_LZMA2 LZMA_VLI_C(0x21)
41 
42 
58 typedef enum {
59  LZMA_MF_HC3 = 0x03,
70  LZMA_MF_HC4 = 0x04,
81  LZMA_MF_BT2 = 0x12,
90  LZMA_MF_BT3 = 0x13,
101  LZMA_MF_BT4 = 0x14
112 
113 
128 extern LZMA_API(lzma_bool) lzma_mf_is_supported(lzma_match_finder match_finder)
130 
131 
138 typedef enum {
139  LZMA_MODE_FAST = 1,
147  LZMA_MODE_NORMAL = 2
156 
157 
170 extern LZMA_API(lzma_bool) lzma_mode_is_supported(lzma_mode mode)
172 
173 
185 typedef struct {
218 # define LZMA_DICT_SIZE_MIN UINT32_C(4096)
219 # define LZMA_DICT_SIZE_DEFAULT (UINT32_C(1) << 23)
220 
241 
255 
282 # define LZMA_LCLP_MIN 0
283 # define LZMA_LCLP_MAX 4
284 # define LZMA_LC_DEFAULT 3
285 
294 # define LZMA_LP_DEFAULT 0
295 
317 # define LZMA_PB_MIN 0
318 # define LZMA_PB_MAX 4
319 # define LZMA_PB_DEFAULT 2
320 
323 
343 
346 
376 
377  /*
378  * Reserved space to allow possible future extensions without
379  * breaking the ABI. You should not touch these, because the names
380  * of these variables may change. These are and will never be used
381  * with the currently supported options, so it is safe to leave these
382  * uninitialized.
383  */
398 
400 
401 
419 extern LZMA_API(lzma_bool) lzma_lzma_preset(
uint32_t preset
Definition: container.h:259
const char int mode
Definition: ioapi.h:137
static const char struct stat static buf struct stat static buf static vhangup int options
Definition: sflib.h:145
lzma_mode
Compression modes.
Definition: lzma12.h:138
@ LZMA_MODE_FAST
Fast compression.
Definition: lzma12.h:139
@ LZMA_MODE_NORMAL
Normal compression.
Definition: lzma12.h:147
LZMA_API(lzma_bool) lzma_mf_is_supported(lzma_match_finder match_finder) lzma_nothrow lzma_attr_const
Test if given match finder is supported.
Definition: index.c:1209
lzma_match_finder
Match finders.
Definition: lzma12.h:58
@ LZMA_MF_HC4
Hash Chain with 2-, 3-, and 4-byte hashing.
Definition: lzma12.h:70
@ LZMA_MF_BT4
Binary Tree with 2-, 3-, and 4-byte hashing.
Definition: lzma12.h:101
@ LZMA_MF_HC3
Hash Chain with 2- and 3-byte hashing.
Definition: lzma12.h:59
@ LZMA_MF_BT2
Binary Tree with 2-byte hashing.
Definition: lzma12.h:81
@ LZMA_MF_BT3
Binary Tree with 2- and 3-byte hashing.
Definition: lzma12.h:90
uint32_t preset lzma_nothrow
Definition: lzma12.h:420
#define lzma_attr_const
Definition: lzma.h:269
unsigned int uint32_t
Definition: sftypes.h:29
unsigned char uint8_t
Definition: sftypes.h:31
Options specific to the LZMA1 and LZMA2 filters.
Definition: lzma12.h:185
uint32_t nice_len
Nice length of a match.
Definition: lzma12.h:342
uint32_t reserved_int6
Definition: lzma12.h:389
uint32_t lp
Number of literal position bits.
Definition: lzma12.h:293
const uint8_t * preset_dict
Pointer to an initial dictionary.
Definition: lzma12.h:240
lzma_mode mode
Definition: lzma12.h:322
lzma_reserved_enum reserved_enum1
Definition: lzma12.h:392
uint32_t depth
Maximum search depth in the match finder.
Definition: lzma12.h:375
uint32_t reserved_int1
Definition: lzma12.h:384
lzma_reserved_enum reserved_enum2
Definition: lzma12.h:393
uint32_t reserved_int2
Definition: lzma12.h:385
uint32_t reserved_int5
Definition: lzma12.h:388
uint32_t preset_dict_size
Size of the preset dictionary.
Definition: lzma12.h:254
lzma_reserved_enum reserved_enum4
Definition: lzma12.h:395
uint32_t reserved_int7
Definition: lzma12.h:390
void * reserved_ptr1
Definition: lzma12.h:396
uint32_t reserved_int3
Definition: lzma12.h:386
uint32_t lc
Number of literal context bits.
Definition: lzma12.h:281
lzma_match_finder mf
Definition: lzma12.h:345
uint32_t reserved_int4
Definition: lzma12.h:387
uint32_t reserved_int8
Definition: lzma12.h:391
void * reserved_ptr2
Definition: lzma12.h:397
uint32_t pb
Number of position bits.
Definition: lzma12.h:316
lzma_reserved_enum reserved_enum3
Definition: lzma12.h:394
uint32_t dict_size
Dictionary size in bytes.
Definition: lzma12.h:217
lzma_reserved_enum
Type of reserved enumeration variable in structures.
Definition: base.h:44
unsigned char lzma_bool
Boolean.
Definition: base.h:29