...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Raw deflate stream decompressor.
Defined in header <boost/beast/zlib/inflate_stream.hpp>
class inflate_stream
Name |
Description |
---|---|
Put the stream in a newly constructed state. |
|
inflate_stream [constructor] |
Construct a raw deflate decompression stream. |
Reset the stream. |
|
Decompress input and produce output. |
This implements a raw deflate stream decompressor. The deflate protocol is a compression protocol described in "DEFLATE Compressed Data Format Specification version 1.3" located here: https://tools.ietf.org/html/rfc1951
The implementation is a refactored port to C++ of ZLib's "inflate". A more detailed description of ZLib is at http://zlib.net/.
Compression can be done in a single step if the buffers are large enough (for example if an input file is memory mapped), or can be done by repeated calls of the compression function. In the latter case, the application must provide more input and/or consume the output (providing more output space) before each call.