Oxygine  1
2g game engine
cdecode.h
1 /*
2 cdecode.h - c header for a base64 decoding algorithm
3 
4 This is part of the libb64 project, and has been placed in the public domain.
5 For details, see http://sourceforge.net/projects/libb64
6 */
7 
8 #ifndef BASE64_CDECODE_H
9 #define BASE64_CDECODE_H
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 typedef enum
15 {
16  step_a, step_b, step_c, step_d
17 } base64_decodestep;
18 
19 typedef struct
20 {
21  base64_decodestep step;
22  char plainchar;
24 
25 void base64_init_decodestate(base64_decodestate* state_in);
26 
27 int base64_decode_value(char value_in);
28 
29 int base64_decode_block(const char* code_in, const int length_in, char* plaintext_out, base64_decodestate* state_in);
30 #ifdef __cplusplus
31 }
32 #endif
33 #endif /* BASE64_CDECODE_H */
Definition: cdecode.h:19