nszlib.h File Reference

#include "ns.h"
#include "zlib.h"

Go to the source code of this file.

Functions

NS_EXTERN unsigned char * Ns_ZlibCompress (unsigned char *inbuf, unsigned long inlen, unsigned long *outlen)
NS_EXTERN unsigned char * Ns_ZlibUncompress (unsigned char *inbuf, unsigned long inlen, unsigned long *outlen)


Function Documentation

NS_EXTERN unsigned char* Ns_ZlibCompress ( unsigned char *  inbuf,
unsigned long  inlen,
unsigned long *  outlen 
)

----------------------------------------------------------------------

Ns_ZlibCompress --

Compress a string.

Results: Pointer to ns_malloc's string of compressed data or NULL on error.

Side effects: None.

----------------------------------------------------------------------

NS_EXTERN unsigned char* Ns_ZlibUncompress ( unsigned char *  inbuf,
unsigned long  inlen,
unsigned long *  outlen 
)

----------------------------------------------------------------------

Ns_ZlibUncompress --

Uncompress a string.

Results: Pointer to ns_malloc'ed string of uncompressed data or NULL on error.

Side effects: None.

----------------------------------------------------------------------


Generated on Tue Sep 4 19:58:57 2007 by  doxygen 1.5.1