GZip compression utilities.
More...
#include <Compression.hpp>
GZip compression utilities.
◆ gunzip() [1/3]
Gunzip the specified input file to the specified output file.
- Parameters
-
input | the gzipped file |
output | the file to write the uncompressed stream to |
◆ gunzip() [2/3]
static void gunzip |
( |
const Resource::File & |
input, |
|
|
std::string & |
output |
|
) |
| |
|
inlinestatic |
Gunzip the specified file to a string.
Be sure that the data will fit in memory (e.g. check the file size before calling), or the application will cause a catastophic memory failure.
- Parameters
-
- Returns
- a string containing the uncompressed data
◆ gunzip() [3/3]
static void gunzip |
( |
const Resource::File & |
input, |
|
|
std::unique_ptr< std::istream > & |
stream |
|
) |
| |
|
inlinestatic |
Get an input stream of the uncompressed contents of the specified gzipped input file.
- Parameters
-
- Returns
- an input stream wrapper supplying a uncompressed stream
◆ gzip() [1/3]
Gzip the specified input file to the specified output file.
- Parameters
-
input | the file to gzip |
output | the file to write the gzipped stream to |
◆ gzip() [2/3]
static void gzip |
( |
const std::string & |
input, |
|
|
const Resource::File & |
output |
|
) |
| |
|
inlinestatic |
Gzip the supplied string to the specified output file.
- Parameters
-
input | the string to gzip |
output | the file to write the gzipped stream to |
◆ gzip() [3/3]
static void gzip |
( |
std::istream & |
input, |
|
|
const Resource::File & |
output |
|
) |
| |
|
inlinestatic |
Gzip the supplied input stream to the specified output file.
- Parameters
-
input | the input stream to gzip |
output | the file to write the gzipped stream to |
The documentation for this struct was generated from the following file: