RLib  5.7
RLib - an opensource, lightweight and multi-platform framework for cpp programming
System::IO::Compression::GZip Class Reference

Provides static methods used to compress and decompress datas using the gzip data format, an industry-standard algorithm for lossless file compression and decompression(the same algorithm as the DeflateStream class) The format includes a cyclic redundancy check value for detecting data corruption More...

Static Public Member Functions

static int Compress (IN const unsigned char *data, IN unsigned long ndata, OUT unsigned char *zdata, IN OUT unsigned long *nzdata, IN CompressionLevel level, IN OPTIONAL int windowBits=-RLIB_MAX_WBITS)
 compress data More...
 
static int Decompress (IN const unsigned char *zdata, IN unsigned long nzdata, OUT unsigned char *data, IN OUT unsigned long *ndata, IN OUT int windowBits=-RLIB_MAX_WBITS)
 decompress data More...
 

Detailed Description

Provides static methods used to compress and decompress datas using the gzip data format, an industry-standard algorithm for lossless file compression and decompression(the same algorithm as the DeflateStream class) The format includes a cyclic redundancy check value for detecting data corruption

Member Function Documentation

int GZip::Compress ( IN const unsigned char *  data,
IN unsigned long  ndata,
OUT unsigned char *  zdata,
IN OUT unsigned long *  nzdata,
IN CompressionLevel  level,
IN OPTIONAL int  windowBits = -RLIB_MAX_WBITS 
)
static

compress data

Returns
0 if successful, -1 if failed, or a positive number if the output buffer is full
int GZip::Decompress ( IN const unsigned char *  zdata,
IN unsigned long  nzdata,
OUT unsigned char *  data,
IN OUT unsigned long *  ndata,
IN OUT int  windowBits = -RLIB_MAX_WBITS 
)
static

decompress data

Returns
0 if successful, -1 if failed, or a positive number if no more input data or the output buffer is full

The documentation for this class was generated from the following files: