|
libkeepass 0.2.0
KeePass key database importer/exporter library
|
Input streambuf that decompresses gzip-compressed data on the fly. More...
#include <stream.hh>
Public Member Functions | |
| gzip_istreambuf (std::istream &src) | |
| Constructs a gzip-decompressing streambuf. | |
| gzip_istreambuf (std::istream &src, const detail::ResourceLimits &limits) | |
| Constructs a gzip-decompressing streambuf with resource limits. | |
| ~gzip_istreambuf () override | |
| Destroys the streambuf and releases the zlib inflate context. | |
| bool | BudgetExceeded () const |
| Returns true if the decompressed size budget was exceeded while reading. | |
| int | underflow () override |
| Inflates compressed data into the output buffer when the get area is exhausted. | |
Input streambuf that decompresses gzip-compressed data on the fly.
Reads compressed data from the underlying stream and inflates it into an internal output buffer. Uses zlib's inflate with gzip decoding.
|
inlineexplicit |
Constructs a gzip-decompressing streambuf.
| src | The input stream containing gzip-compressed data. |
| InternalError | If the zlib inflate context cannot be initialized. |
|
inline |
Constructs a gzip-decompressing streambuf with resource limits.
| src | The input stream containing gzip-compressed data. |
| limits | The resource budgets enforced while inflating. |
| InternalError | If the zlib inflate context cannot be initialized. |