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::ZLibDecompressor Class Reference

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

#include <zlibmisc.hpp>

Inheritance diagram for zlibcomplete::ZLibDecompressor:

Public Member Functions

 ZLibDecompressor (void)
 
 ~ZLibDecompressor (void)
 
std::string decompress (const std::string &input)
 

Detailed Description

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.

Constructor & Destructor Documentation

zlibcomplete::ZLibDecompressor::ZLibDecompressor ( void  )
zlibcomplete::ZLibDecompressor::~ZLibDecompressor ( void  )

Member Function Documentation

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.

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: