cocos2d for iPhone 1.0.0
2D engine for iOS and OS X
Functions
/Users/rquesada/progs/cocos2d-iphone/cocos2d/Support/ZipUtils.h File Reference
#import <stdint.h>
Include dependency graph for ZipUtils.h:

Go to the source code of this file.

Functions

int ccInflateMemory (unsigned char *in, unsigned int inLength, unsigned char **out)
int ccInflateMemoryWithHint (unsigned char *in, unsigned int inLength, unsigned char **out, unsigned int outLenghtHint)
int ccInflateGZipFile (const char *filename, unsigned char **out)
int ccInflateCCZFile (const char *filename, unsigned char **out)

Detailed Description

Zip helper functions

Definition in file ZipUtils.h.


Function Documentation

int ccInflateCCZFile ( const char *  filename,
unsigned char **  out 
)

inflates a CCZ file into memory

Returns:
the length of the deflated buffer
Since:
v0.99.5
int ccInflateGZipFile ( const char *  filename,
unsigned char **  out 
)

inflates a GZip file into memory

Returns:
the length of the deflated buffer
Since:
v0.99.5
int ccInflateMemory ( unsigned char *  in,
unsigned int  inLength,
unsigned char **  out 
)

Inflates either zlib or gzip deflated memory. The inflated memory is expected to be freed by the caller.

It will allocate 256k for the destination buffer. If it is not enought it will multiply the previous buffer size per 2, until there is enough memory.

Returns:
the length of the deflated buffer
Since:
v0.8.1
int ccInflateMemoryWithHint ( unsigned char *  in,
unsigned int  inLength,
unsigned char **  out,
unsigned int  outLenghtHint 
)

Inflates either zlib or gzip deflated memory. The inflated memory is expected to be freed by the caller.

outLenghtHint is assumed to be the needed room to allocate the inflated buffer.

Returns:
the length of the deflated buffer
Since:
v1.0.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines

cocos2d for iPhone API Reference - Generated using Doxygen 1.7.4