clan::ZLibCompression Class Reference - ClanLib SDK
Description: clan::ZLibCompression Class Reference

Public Types | Static Public Member Functions | List of all members
clan::ZLibCompression Class Reference
clanCore I/O Data

Deflate compressor. More...

`#include <zlib_compression.h>`

## Public Types
enum | CompressionMode { default_strategy , filtered , huffman_only , rle , fixed }

## Static Public Member Functions
static DataBuffer | compress (const DataBuffer &data, bool raw=true, int compression_level=6, CompressionMode mode=default_strategy)
static DataBuffer | decompress (const DataBuffer &data, bool raw=true)

## Detailed Description

Deflate compressor.

## Member Enumeration Documentation

## ◆ CompressionMode

enum clan::ZLibCompression::CompressionMode

Enumerator
default_strategy |
filtered |
huffman_only |
rle |
fixed |

## Member Function Documentation

## ◆ compress()

static DataBuffer clan::ZLibCompression::compress | ( | const DataBuffer & | data,
|  | bool | raw = true,
|  | int | compression_level = 6,
|  | CompressionMode | mode = default_strategy )
| static

## ◆ decompress()

static DataBuffer clan::ZLibCompression::decompress | ( | const DataBuffer & | data,
|  | bool | raw = true )
| static

The documentation for this class was generated from the following file:

- zlib_compression.h