blob: d30878e20628b58f0406c67a7e24d5f3f1c487ca (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/*
public domain BASE64 code
modified for cocos2d-iphone: http://www.cocos2d-iphone.org
*/
#ifndef __CC_BASE64_DECODE_H
#define __CC_BASE64_DECODE_H
#ifdef __cplusplus
extern "C" {
#endif
/** @file
base64 helper functions
*/
/**
* Decodes a 64base encoded memory. The decoded memory is
* expected to be freed by the caller.
*
* @returns the length of the out buffer
*
@since v0.8.1
*/
int base64Decode(unsigned char *in, unsigned int inLength, unsigned char **out);
#ifdef __cplusplus
}
#endif
#endif // __CC_BASE64_DECODE_H
|