libnavajo
web server for static and dynamic pages developement in C++
Macros | Functions
nvjGzip.h File Reference

zip compression's facilities More...

#include <stdlib.h>
#include <string>
#include <stdexcept>
#include "zlib.h"
#include "zlibPatchOldVersion.h"
Include dependency graph for nvjGzip.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CHUNK   16384
 

Functions

size_t nvj_gzip (unsigned char **dst, const unsigned char *src, const size_t sizeSrc, bool rawDeflateData=false)
 
size_t nvj_gunzip (unsigned char **dst, const unsigned char *src, const size_t sizeSrc, bool rawDeflateData=false)
 
size_t nvj_gzip_websocket_v2 (unsigned char **dst, const unsigned char *src, const size_t sizeSrc, z_stream *pstream=NULL, const unsigned int sizeChunk=CHUNK)
 
void nvj_end_stream (z_stream *pstream=NULL)
 
void nvj_init_stream (z_stream *pstream=NULL, bool rawDeflateData=false, int level=Z_BEST_COMPRESSION, int strategy=Z_DEFAULT_STRATEGY)
 
size_t nvj_gunzip_websocket_v2 (unsigned char **dst, const unsigned char *src, size_t sizeSrc, bool rawDeflateData=false, unsigned char *dictionary=NULL, unsigned int *dictLength=NULL, const unsigned int sizeChunk=CHUNK)
 

Detailed Description

zip compression's facilities

Author
T.Descombes (thier.nosp@m.ry.d.nosp@m.escom.nosp@m.bes@.nosp@m.gmail.nosp@m..com)
Version
1
Date
19/02/15