Rizin
unix-like reverse engineering framework and cli tools
coder.h
Go to the documentation of this file.
1 //
5 //
6 // Author: Lasse Collin
7 //
8 // This file has been put into the public domain.
9 // You can do whatever you want with this file.
10 //
12 
18 };
19 
20 
21 // NOTE: The order of these is significant in suffix.c.
26  // HEADER_GZIP,
28 };
29 
30 
33 extern enum operation_mode opt_mode;
34 
38 extern enum format_type opt_format;
39 
42 extern bool opt_auto_adjust;
43 
45 extern bool opt_single_stream;
46 
50 
53 extern uint64_t *opt_block_list;
54 
56 extern void coder_set_check(lzma_check check);
57 
59 extern void coder_set_preset(uint32_t new_preset);
60 
62 extern void coder_set_extreme(void);
63 
65 extern void coder_add_filter(lzma_vli id, void *options);
66 
68 extern void coder_set_compression_settings(void);
69 
71 extern void coder_run(const char *filename);
72 
73 #ifndef NDEBUG
75 extern void coder_free(void);
76 #endif
lzma_check
Type of the integrity check (Check ID)
Definition: check.h:27
void coder_free(void)
Free the memory allocated for the coder and kill the worker threads.
Definition: coder.c:939
uint64_t * opt_block_list
Definition: coder.c:29
void coder_set_extreme(void)
Enable extreme mode.
Definition: coder.c:98
void coder_set_compression_settings(void)
Definition: coder.c:137
operation_mode
Definition: coder.h:13
@ MODE_COMPRESS
Definition: coder.h:14
@ MODE_TEST
Definition: coder.h:16
@ MODE_LIST
Definition: coder.h:17
@ MODE_DECOMPRESS
Definition: coder.h:15
enum format_type opt_format
Definition: coder.c:25
void coder_add_filter(lzma_vli id, void *options)
Add a filter to the custom filter chain.
Definition: coder.c:107
void coder_set_check(lzma_check check)
Set the integrity check type used when compressing.
Definition: coder.c:64
format_type
Definition: coder.h:22
@ FORMAT_RAW
Definition: coder.h:27
@ FORMAT_AUTO
Definition: coder.h:23
@ FORMAT_XZ
Definition: coder.h:24
@ FORMAT_LZMA
Definition: coder.h:25
void coder_run(const char *filename)
Compress or decompress the given file.
Definition: coder.c:869
bool opt_single_stream
If true, stop after decoding the first stream.
Definition: coder.c:27
bool opt_auto_adjust
Definition: coder.c:26
uint64_t opt_block_size
Definition: coder.c:28
void coder_set_preset(uint32_t new_preset)
Set preset number.
Definition: coder.c:88
enum operation_mode opt_mode
Definition: coder.c:24
lzma_check check
Definition: container.h:292
const char * filename
Definition: ioapi.h:137
static const char struct stat static buf struct stat static buf static vhangup int options
Definition: sflib.h:145
unsigned int uint32_t
Definition: sftypes.h:29
unsigned long uint64_t
Definition: sftypes.h:28
uint64_t lzma_vli
Variable-length integer type.
Definition: vli.h:63