#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) |
| 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.
----------------------------------------------------------------------
1.5.1