* @param bytesConsumed -- return of the number of input bytes of compressed data used.
* @param bytesConsumed -- return of the number of input bytes of compressed data used.
* @return 0 on success, a negative number on error
* @return 0 on success, a negative number on error
*/
*/
staticint
int
zlib_inflate(char*source,uint64_tsourceLen,char*dest,uint64_tdestLen,uint64_t*uncompressedLength,unsignedlong*bytesConsumed)// this is unsigned long because that's what zlib uses.
zlib_inflate(char*source,uint64_tsourceLen,char*dest,uint64_tdestLen,uint64_t*uncompressedLength,unsignedlong*bytesConsumed)// this is unsigned long because that's what zlib uses.