Go to the documentation of this file.
11 #define GZIP_NOEXIST 1
12 #define GZIP_NOTFILE 2
15 #define GZIP_OPTIONNOTSUPPORTED 5
16 #define GZIP_OUTFILEEXISTS 6
17 #define GZIP_CRCERROR 7
18 #define GZIP_READERROR 8
19 #define GZIP_WRITEERROR 9
20 #define GZIP_LENGTHERROR 10
21 #define GZIP_FILENAMEERROR 11
22 #define GZIP_INTERNAL 12
25 typedef unsigned char uch;
26 typedef unsigned short ush;
27 typedef unsigned long ulg;
42 int gzip (
const QString& );
48 int gunzip (
const QString& );
53 QString explain(
const int );
81 #define INBUFSIZ 0x8000
82 #define INBUF_EXTRA 64
83 #define OUTBUFSIZ 16384
84 #define OUTBUF_EXTRA 2048
112 int treat_file (
const QString&,
bool );
113 QString make_ofname (
const QString&,
bool );
114 int huft_build (
unsigned*,
unsigned,
unsigned,
ush*,
ush*,
115 struct huft**,
int* );
116 int huft_free (
struct huft * );
117 int inflate_codes (
struct huft*,
struct huft*,
int,
int );
118 int inflate_stored (
void );
119 int inflate_fixed (
void );
120 int inflate_dynamic(
void );
121 int inflate_block (
int* );
122 int inflate (
void );
124 int fill_inbuf (
int );
125 void flush_window (
void );
126 ulg updcrc (
uch*,
unsigned );
127 void write_buf (
int,
void*,
unsigned );
128 char* base_name (
char* );
129 void flush_outbuf (
void );
161 #define max_insert_length max_lazy_match
171 #define tab_prefix prev
172 #define head ( prev + WSIZE )
181 #define Buf_size ( 8 * 2 * sizeof( char ) )
194 #define MAX_BL_BITS 7
197 #define LENGTH_CODES 29
203 #define END_BLOCK 256
212 #define L_CODES ( LITERALS + 1 + LENGTH_CODES )
220 #define HEAP_SIZE ( 2 * L_CODES + 1 )
255 #define MAX_MATCH 258
274 #define DIST_BUFSIZE 0x8000
279 # define LIT_BUFSIZE 0x2000
282 # define LIT_BUFSIZE 0x4000
284 # define LIT_BUFSIZE 0x8000
327 off_t deflate (
void );
328 void lm_init (
void );
329 int file_read (
char*,
unsigned int );
330 void fill_window (
void );
331 int longest_match (
IPos );
332 void ct_init (
void );
333 int ct_tally (
int,
int );
334 off_t flush_block (
char*,
ulg,
int );
335 void bi_init (
void );
337 int build_bl_tree (
void );
338 void copy_block (
char*,
unsigned,
int );
339 void send_bits (
int,
int );
341 void send_all_trees (
int,
int,
int );
342 void send_tree (
ct_data*,
int );
343 void init_block (
void );
344 void bi_windup (
void );
345 unsigned bi_reverse (
unsigned,
int );
347 void gen_codes (
ct_data*,
int );
348 void pqdownheap (
ct_data*,
int );
349 void scan_tree (
ct_data*,
int );