#include <string>#include <zlib.h>

Go to the source code of this file.
Functions | |
| string | compress_string (const string &str, int compressionlevel=Z_BEST_COMPRESSION) |
| string | decompress_string (const string &str) |
| string compress_string | ( | const string & | str, |
| int | compressionlevel = Z_BEST_COMPRESSION |
||
| ) |
Compress a STL string using zlib with given compression level and return the binary data.
Definition at line 10 of file compress_string.h.
| string decompress_string | ( | const string & | str | ) |
Decompress an STL string using zlib and return the original data.
Definition at line 52 of file compress_string.h.