GClasses
|
This implements a simple compression/decompression algorithm. More...
#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). | |
static unsigned char * | uncompress (unsigned char *pIn, unsigned int len, unsigned int *pOutUncompressedLen) |
Uncompress pIn. You are responsible to delete[] pOut. | |
static void | test () |
This implements a simple compression/decompression algorithm.
static unsigned char* GClasses::GCompressor::compress | ( | unsigned char * | pIn, |
unsigned int | len, | ||
unsigned int * | pOutNewLen | ||
) | [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 void GClasses::GCompressor::test | ( | ) | [static] |
static unsigned char* GClasses::GCompressor::uncompress | ( | unsigned char * | pIn, |
unsigned int | len, | ||
unsigned int * | pOutUncompressedLen | ||
) | [static] |
Uncompress pIn. You are responsible to delete[] pOut.