Nilorea Library
C utilities for networking, threading, graphics
n_zlib.c File Reference

ZLIB compression handler. More...

#include "nilorea/n_zlib.h"
#include "nilorea/n_log.h"
#include "limits.h"
#include <arpa/inet.h>
+ Include dependency graph for n_zlib.c:

Go to the source code of this file.

Functions

int CompressData (unsigned char *abSrc, unsigned int nLenSrc, unsigned char *abDst, unsigned int nLenDst)
 Compress a string to another. More...
 
int GetMaxCompressedLen (unsigned int nLenSrc)
 Return the maximum compressed size. More...
 
int UncompressData (unsigned char *abSrc, unsigned int nLenSrc, unsigned char *abDst, unsigned int nLenDst)
 Uncompress a string to another. More...
 
N_STRunzip_nstr (N_STR *src)
 return an uncompressed version of src More...
 
N_STRzip_nstr (N_STR *src)
 return a compressed version of src More...
 

Detailed Description

ZLIB compression handler.

Author
Castagnier Mickael
Version
1.0
Date
27/06/2017

Definition in file n_zlib.c.