GClasses
|
This implements a simple compression/decompression algorithm.
#include <GFile.h>
Static Public Member Functions | |
static unsigned char * | compress (unsigned char *pIn, unsigned int len, unsigned int *pOutNewLen) |
Compress pIn. You are responsible to delete[] pOut. The new length is guaranteed to be at most len+5, and typically will be much smaller. Also, the first 4 bytes in the compressed data will be len (the size when uncompressed). More... | |
static void | test () |
static unsigned char * | uncompress (unsigned char *pIn, unsigned int len, unsigned int *pOutUncompressedLen) |
Uncompress pIn. You are responsible to delete[] pOut. More... | |
|
static |
Compress pIn. You are responsible to delete[] pOut. The new length is guaranteed to be at most len+5, and typically will be much smaller. Also, the first 4 bytes in the compressed data will be len (the size when uncompressed).
|
static |
|
static |
Uncompress pIn. You are responsible to delete[] pOut.