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

PrevUpHomeNext

zlib::compression

Compression levels.

Synopsis

Defined in header <boost/beast/zlib/zlib.hpp>

enum compression
Values

Name

Description

none

best_speed

best_size

default_size

Description

The compression levels go from 0 and 9: 1 gives best speed, 9 gives best compression.

Compression level 0 gives no compression at all. The input data is simply copied a block at a time.

A compression level 6 is usually a default compromise between speed and compression.


PrevUpHomeNext