#include "us_gzip.h"
Classes | |
struct | config |
For definition of different compression levels. More... | |
struct | ct_data |
struct | huft |
struct | tree_desc |
Public Types | |
typedef struct US_Gzip::config | config |
For definition of different compression levels. More... | |
Public Member Functions | |
US_Gzip () | |
int | gzip (const QString &) |
int | gunzip (const QString &) |
QString | explain (const int) |
Private Types | |
typedef ush | Pos |
typedef unsigned | IPos |
typedef struct US_Gzip::ct_data | ct_data |
typedef struct US_Gzip::tree_desc | tree_desc |
Private Member Functions | |
int | treat_file (const QString &, bool) |
QString | make_ofname (const QString &, bool) |
int | huft_build (unsigned *, unsigned, unsigned, ush *, ush *, struct huft **, int *) |
int | huft_free (struct huft *) |
int | inflate_codes (struct huft *, struct huft *, int, int) |
int | inflate_stored (void) |
int | inflate_fixed (void) |
int | inflate_dynamic (void) |
int | inflate_block (int *) |
int | inflate (void) |
int | fill_inbuf (int) |
void | flush_window (void) |
ulg | updcrc (uch *, unsigned) |
void | write_buf (int, void *, unsigned) |
char * | base_name (char *) |
void | flush_outbuf (void) |
off_t | deflate (void) |
void | lm_init (void) |
int | file_read (char *, unsigned int) |
void | fill_window (void) |
int | longest_match (IPos) |
void | ct_init (void) |
int | ct_tally (int, int) |
off_t | flush_block (char *, ulg, int) |
void | bi_init (void) |
void | build_tree (tree_desc *) |
int | build_bl_tree (void) |
void | copy_block (char *, unsigned, int) |
void | send_bits (int, int) |
void | compress_block (ct_data *, ct_data *) |
void | send_all_trees (int, int, int) |
void | send_tree (ct_data *, int) |
void | init_block (void) |
void | bi_windup (void) |
unsigned | bi_reverse (unsigned, int) |
void | gen_bitlen (tree_desc *) |
void | gen_codes (ct_data *, int) |
void | pqdownheap (ct_data *, int) |
void | scan_tree (ct_data *, int) |
A class to provide gzip compression and decompression. It is limited to level 9 compression. This is a port of the GPLed verion of gzip for Qt4.
typedef struct US_Gzip::config US_Gzip::config |
For definition of different compression levels.
|
private |
|
private |
|
private |
|
private |
US_Gzip::US_Gzip | ( | ) |
Definition at line 196 of file us_gzip.cpp.
|
private |
Definition at line 1673 of file us_gzip.cpp.
|
private |
Definition at line 2197 of file us_gzip.cpp.
|
private |
Definition at line 2614 of file us_gzip.cpp.
|
private |
Definition at line 2632 of file us_gzip.cpp.
|
private |
Definition at line 2785 of file us_gzip.cpp.
|
private |
Definition at line 2694 of file us_gzip.cpp.
Definition at line 2525 of file us_gzip.cpp.
|
private |
Definition at line 2651 of file us_gzip.cpp.
|
private |
Definition at line 2248 of file us_gzip.cpp.
|
private |
Definition at line 2328 of file us_gzip.cpp.
|
private |
Definition at line 1764 of file us_gzip.cpp.
QString US_Gzip::explain | ( | const int | error | ) |
Explain an error
error | The error code that was returned gzip or gunzip |
Definition at line 3187 of file us_gzip.cpp.
|
private |
Definition at line 1977 of file us_gzip.cpp.
|
private |
Definition at line 1558 of file us_gzip.cpp.
|
private |
Definition at line 2003 of file us_gzip.cpp.
|
private |
Definition at line 2390 of file us_gzip.cpp.
|
private |
Definition at line 1695 of file us_gzip.cpp.
|
private |
Definition at line 1594 of file us_gzip.cpp.
|
private |
Definition at line 2823 of file us_gzip.cpp.
|
private |
Definition at line 2927 of file us_gzip.cpp.
int US_Gzip::gunzip | ( | const QString & | filename | ) |
Decompress a file
filename | The file to be compressed. |
Definition at line 207 of file us_gzip.cpp.
int US_Gzip::gzip | ( | const QString & | filename | ) |
Compress a file
filename | The file to be compressed. |
Definition at line 201 of file us_gzip.cpp.
|
private |
Definition at line 814 of file us_gzip.cpp.
|
private |
Definition at line 1049 of file us_gzip.cpp.
|
private |
Definition at line 1516 of file us_gzip.cpp.
|
private |
Definition at line 1474 of file us_gzip.cpp.
Definition at line 1071 of file us_gzip.cpp.
|
private |
Definition at line 1308 of file us_gzip.cpp.
|
private |
Definition at line 1253 of file us_gzip.cpp.
|
private |
Definition at line 1198 of file us_gzip.cpp.
|
private |
Definition at line 2502 of file us_gzip.cpp.
|
private |
Definition at line 1881 of file us_gzip.cpp.
|
private |
Definition at line 2067 of file us_gzip.cpp.
|
private |
Definition at line 547 of file us_gzip.cpp.
|
private |
Definition at line 2972 of file us_gzip.cpp.
|
private |
Definition at line 3035 of file us_gzip.cpp.
|
private |
Definition at line 3002 of file us_gzip.cpp.
|
private |
Definition at line 2587 of file us_gzip.cpp.
|
private |
Definition at line 3107 of file us_gzip.cpp.
|
private |
Definition at line 213 of file us_gzip.cpp.
Definition at line 1610 of file us_gzip.cpp.
|
private |
Definition at line 1641 of file us_gzip.cpp.
|
private |
|
private |
|
private |
|
private |
|
private |