|
libkeepass 0.2.0
KeePass key database importer/exporter library
|
Output streambuf that compresses data with gzip on the fly. More...
#include <stream.hh>
Public Member Functions | |
| gzip_ostreambuf (std::ostream &dst) | |
| Constructs a gzip-compressing streambuf. | |
| ~gzip_ostreambuf () override | |
| Destroys the streambuf, finalizing the gzip stream and releasing the zlib context. | |
| int | overflow (int c) override |
| Buffers a character; deflates and writes the buffer when it reaches capacity. | |
| int | sync () override |
| Flushes any buffered data and finalizes the gzip stream. | |
Output streambuf that compresses data with gzip on the fly.
Accumulates data in an internal buffer and deflates it using zlib. The gzip stream is finalized when the streambuf is destroyed or sync is called.
|
explicit |
Constructs a gzip-compressing streambuf.
| dst | The output stream to write compressed data to. |
| InternalError | If the zlib deflate context cannot be initialized. |