Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2024. The current version is 1.90.0.
Returns the upper limit on the size of a compressed block.
Defined in header <boost/beast/zlib/deflate_stream.hpp>
std::size_t deflate_upper_bound( std::size_t bytes);
This function makes a conservative estimate of the maximum number of bytes needed to store the result of compressing a block of data.
|
Name |
Description |
|---|---|
|
|
The size of the uncompressed data. |
The maximum number of resulting compressed bytes.