/libs/cocos2d/Support/ZipUtils.h
C Header | 41 lines | 10 code | 7 blank | 24 comment | 0 complexity | f4771cd599e408a91e0fdaed57f926ec MD5 | raw file
Possible License(s): Apache-2.0
1/* cocos2d for iPhone 2 * 3 * http://www.cocos2d-iphone.org 4 * 5 * 6 * inflateMemory_ based on zlib example code 7 * http://www.zlib.net 8 * 9 * Some ideas were taken from: 10 * http://themanaworld.org/ 11 * from the mapreader.cpp file 12 * 13 */ 14 15#ifndef __CC_ZIP_UTILS_H 16#define __CC_ZIP_UTILS_H 17 18#ifdef __cplusplus 19extern "C" { 20#endif 21 22/** @file 23 * Zip helper functions 24 */ 25 26/** 27 * Inflates either zlib or gzip deflated memory. The inflated memory is 28 * expected to be freed by the caller. 29 * 30 * @returns the length of the deflated buffer 31 * 32 @since v0.8.1 33 */ 34int inflateMemory(unsigned char *in, unsigned int inLength, unsigned char **out); 35 36 37#ifdef __cplusplus 38} 39#endif 40 41#endif // __CC_ZIP_UTILS_H