![]() |
| Home |
|
|
Function PegZipFunction PegZip compresses data:
short int PegZip(BYTE * pDest,
DWORD * pDestLen,
const BYTE * pSource,
DWORD sourceLen);
ParameterspDestPointer to buffer to receive the compressed data. pDestLenPointer to the length of *pDest. On entry, this value must be initalized with the size of the output buffer. It must be at least 0.1% of sourceLen plus 12 bytes. Upon exit, *destLen is the actual size of the compressed data. pSourcePointer to the data to compress. sourceLenSize in bytes of the data to compress. return valuePegZip returns PZIP_OK if success, PZIP_MEM_ERROR if there was not enough memory in pDest and PZIP_BUF_ERROR if there was not enough room in the output buffer.
|