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

Provides static methods for compressing and decompressing datas by using the Deflate algorithm Starting with the RLib v4.5, the Deflate class uses the zlib library. As a result, it provides a better compression algorithm and, in most cases, a smaller compressed file than it provides in earlier versions of the RLib 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)
 compress data with Z_BEST_COMPRESSION More...
 
static int Decompress (IN const unsigned char *zdata, IN unsigned long nzdata, OUT unsigned char *data, IN OUT unsigned long *ndata)
 decompress data More...
 

Detailed Description

Provides static methods for compressing and decompressing datas by using the Deflate algorithm Starting with the RLib v4.5, the Deflate class uses the zlib library. As a result, it provides a better compression algorithm and, in most cases, a smaller compressed file than it provides in earlier versions of the RLib

Member Function Documentation

int Deflate::Compress ( IN const unsigned char *  data,
IN unsigned long  ndata,
OUT unsigned char *  zdata,
IN OUT unsigned long *  nzdata,
IN CompressionLevel  level 
)
static

compress data with Z_BEST_COMPRESSION

Returns
0 if successful, -1 if failed, or a positive number if the output buffer is full
int Deflate::Decompress ( IN const unsigned char *  zdata,
IN unsigned long  nzdata,
OUT unsigned char *  data,
IN OUT unsigned long *  ndata 
)
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: