diff options
Diffstat (limited to 'libs/cocos2d/Support/base64.h')
| -rwxr-xr-x | libs/cocos2d/Support/base64.h | 33 |
1 files changed, 33 insertions, 0 deletions
| diff --git a/libs/cocos2d/Support/base64.h b/libs/cocos2d/Support/base64.h new file mode 100755 index 0000000..d30878e --- /dev/null +++ b/libs/cocos2d/Support/base64.h | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | /* | ||
| 2 | public domain BASE64 code | ||
| 3 | |||
| 4 | modified for cocos2d-iphone: http://www.cocos2d-iphone.org | ||
| 5 | */ | ||
| 6 | |||
| 7 | #ifndef __CC_BASE64_DECODE_H | ||
| 8 | #define __CC_BASE64_DECODE_H | ||
| 9 | |||
| 10 | #ifdef __cplusplus | ||
| 11 | extern "C" { | ||
| 12 | #endif | ||
| 13 | |||
| 14 | |||
| 15 | /** @file | ||
| 16 | base64 helper functions | ||
| 17 | */ | ||
| 18 | |||
| 19 | /** | ||
| 20 | * Decodes a 64base encoded memory. The decoded memory is | ||
| 21 | * expected to be freed by the caller. | ||
| 22 | * | ||
| 23 | * @returns the length of the out buffer | ||
| 24 | * | ||
| 25 | @since v0.8.1 | ||
| 26 | */ | ||
| 27 | int base64Decode(unsigned char *in, unsigned int inLength, unsigned char **out); | ||
| 28 | |||
| 29 | #ifdef __cplusplus | ||
| 30 | } | ||
| 31 | #endif | ||
| 32 | |||
| 33 | #endif // __CC_BASE64_DECODE_H | ||
