zlibcomplete
Simple C++ wrapper for zlib using RAII and std::string with flush.
|
GZip decompression class using std::string for input and output. More...
#include <gzipcomplete.hpp>
Public Member Functions | |
GZipDecompressor (void) | |
~GZipDecompressor (void) | |
std::string | decompress (const std::string &input) |
Decompression function for gzip using std::string. More... | |
GZip decompression class using std::string for input and output.
Implements gzip decompression using std::string for input and output. To use, simply call decompress() zero or more times. This class implements RFC 1952.
zlibcomplete::GZipDecompressor::GZipDecompressor | ( | void | ) |
zlibcomplete::GZipDecompressor::~GZipDecompressor | ( | void | ) |
std::string zlibcomplete::GZipDecompressor::decompress | ( | const std::string & | input | ) |
Decompression function for gzip using std::string.
Accepts a std::string of any size containing compressed data. Returns as much gzip uncompressed data as possible. Call this function over and over with all the compressed data in a stream in order to decompress the entire stream.
input | Any amount of data to decompress. |
std::string | containing the decompressed data. |