/libs/cocos2d/Support/ZipUtils.h

http://github.com/kstenerud/ObjectAL-for-iPhone · C Header · 41 lines · 10 code · 7 blank · 24 comment · 0 complexity · f4771cd599e408a91e0fdaed57f926ec MD5 · raw file

  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. #ifndef __CC_ZIP_UTILS_H
  15. #define __CC_ZIP_UTILS_H
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. /** @file
  20. * Zip helper functions
  21. */
  22. /**
  23. * Inflates either zlib or gzip deflated memory. The inflated memory is
  24. * expected to be freed by the caller.
  25. *
  26. * @returns the length of the deflated buffer
  27. *
  28. @since v0.8.1
  29. */
  30. int inflateMemory(unsigned char *in, unsigned int inLength, unsigned char **out);
  31. #ifdef __cplusplus
  32. }
  33. #endif
  34. #endif // __CC_ZIP_UTILS_H