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 the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

zlib::Strategy

Compression strategy.

Synopsis

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

enum Strategy

Values

Name

Description

normal

Default strategy.

This is suitable for general purpose compression, and works well in the majority of cases.

filtered

Filtered strategy.

This strategy should be used when the data be compressed is produced by a filter or predictor.

huffman

Huffman-only strategy.

This strategy only performs Huffman encoding, without doing any string matching.

rle

Run Length Encoding strategy.

This strategy limits match distances to one, making it equivalent to run length encoding. This can give better performance for things like PNG image data.

fixed

Fixed table strategy.

This strategy prevents the use of dynamic Huffman codes, allowing for a simpler decoder for special applications.

Description

These are used when compressing streams.

Convenience header <boost/beast/zlib.hpp>


PrevUpHomeNext