Home |
HMI (Human-Machine Interface) Classes Function PegUnzip |
Function PegUnzipFunction PegUnzip decompresses data previously compressed with PegZip: short int PegUnzip(BYTE * pDest, DWORD * pDestLen, const BYTE * pSource, DWORD sourceLen); ParameterspDestPointer to buffer to receive the uncompressed data. pDestLenPointer to the length of *pDest. Upon entry, *destLen is the total size of the destination buffer, which must be large enough to hold the entire uncompressed data. The size of the uncompressed data must have been saved previously by the compressor and transmitted to the decompressor by some mechanism outside the scope of this compression library. Upon exit, *destLen is the actual size of the decompressed data. pSourcePointer to the data to decompress. sourceLenSize in bytes of the data to decompress. return valuePegUnzip returns PZIP_OK if success, PZIP_MEM_ERROR if there was not enough memory, PZIP_BUF_ERROR if there was not enough room in the output buffer or PZIP_DATA_ERROR if the input data was corrupted.
|