zlibcomplete
Simple C++ wrapper for zlib using RAII and std::string with flush.
 All Classes Namespaces Files Functions Enumerations Enumerator Macros Pages
zlibraw.hpp
Go to the documentation of this file.
1 #ifndef __ZLIBRAW_HPP
2 #define __ZLIBRAW_HPP
3 
15 #include <zlc/zlibbase.hpp>
16 
17 namespace zlibcomplete {
18 
29  class RawDeflater : public ZLibBaseCompressor {
30 public:
40  RawDeflater(int level = 9, flush_parameter autoFlush = auto_flush, int windowBits = 15);
41  ~RawDeflater(void);
55  std::string deflate(const std::string& input);
65  std::string finish(void);
66  };
67 
78  class RawInflater : public ZLibBaseDecompressor {
79 public:
89  RawInflater(int windowBits = 15);
90  ~RawInflater(void);
99  std::string inflate(const std::string& input);
100  };
101 
102 }
103 
104 #endif
Raw ZLib compression class using std::string for input and output.
Definition: zlibraw.hpp:29
Raw ZLib decompression class using std::string for input and output.
Definition: zlibraw.hpp:78
RawInflater(int windowBits=15)
Constructs a Raw ZLib decompressor.
Definition: raw.cpp:25
~RawDeflater(void)
Definition: raw.cpp:22
flush_parameter
Definition: zlibbase.hpp:10
~RawInflater(void)
Definition: raw.cpp:28
std::string finish(void)
Writes a termination block to the raw zlib stream indicating the end.
Definition: raw.cpp:18
RawDeflater(int level=9, flush_parameter autoFlush=auto_flush, int windowBits=15)
Definition: raw.cpp:9
Definition: zlibbase.hpp:10
std::string deflate(const std::string &input)
Compresses data. Uses std::string for input and output.
Definition: raw.cpp:14
std::string inflate(const std::string &input)
Definition: raw.cpp:31