zlibcomplete
Simple C++ wrapper for zlib using RAII and std::string with flush.
|
ZLib decompression class using std::string for input and output. More...
#include <zlibmisc.hpp>
Public Member Functions | |
ZLibDecompressor (void) | |
~ZLibDecompressor (void) | |
std::string | decompress (const std::string &input) |
ZLib decompression class using std::string for input and output.
Implements zlib decompression using std::string for input and output. To use, simply call decompress() zero or more times. This class implements RFC 1950.
zlibcomplete::ZLibDecompressor::ZLibDecompressor | ( | void | ) |
zlibcomplete::ZLibDecompressor::~ZLibDecompressor | ( | void | ) |
std::string zlibcomplete::ZLibDecompressor::decompress | ( | const std::string & | input | ) |
Accepts a std::string of any size containing compressed data. Returns as much zlib 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. |