GNUnet  0.20.0
compress.c File Reference

Simple (de)compression logic. More...

#include "platform.h"
#include "gnunet_util_lib.h"
#include <zlib.h>
Include dependency graph for compress.c:

Go to the source code of this file.


int GNUNET_try_compression (const char *data, size_t old_size, char **result, size_t *new_size)
 Try to compress the given block of data using libz. More...
char * GNUNET_decompress (const char *input, size_t input_size, size_t output_size)
 Decompress input, return the decompressed data as output. More...

Detailed Description

Simple (de)compression logic.

Philipp Toelke
Martin Schanzenbach

Definition in file compress.c.