zlibcomplete
Simple C++ wrapper for zlib using RAII and std::string with flush.
 All Classes Namespaces Files Functions Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
zlibcomplete::GZipDecompressor Class Reference

GZip decompression class using std::string for input and output. More...

#include <gzipcomplete.hpp>

Inheritance diagram for zlibcomplete::GZipDecompressor:

Public Member Functions

 GZipDecompressor (void)
 
 ~GZipDecompressor (void)
 
std::string decompress (const std::string &input)
 Decompression function for gzip using std::string. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

zlibcomplete::GZipDecompressor::GZipDecompressor ( void  )
zlibcomplete::GZipDecompressor::~GZipDecompressor ( void  )

Member Function Documentation

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.

Parameters
inputAny amount of data to decompress.
Return values
std::stringcontaining the decompressed data.

The documentation for this class was generated from the following files: