ESP8266
Main Page
Related Pages
Modules
Classes
esp8266
cores
esp8266
libb64
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
#define base64_decode_expected_len(n) ((n * 3) / 4)
12
13
#ifdef __cplusplus
14
extern
"C"
{
15
#endif
16
17
typedef
enum
{
18
step_a, step_b, step_c, step_d
19
} base64_decodestep;
20
21
typedef
struct
{
22
base64_decodestep
step
;
23
char
plainchar
;
24
}
base64_decodestate
;
25
26
void
base64_init_decodestate(
base64_decodestate
* state_in);
27
28
int
base64_decode_value(
char
value_in);
29
30
int
base64_decode_block(
const
char
* code_in,
const
int
length_in,
char
* plaintext_out,
base64_decodestate
* state_in);
31
32
int
base64_decode_chars(
const
char
* code_in,
const
int
length_in,
char
* plaintext_out);
33
34
#ifdef __cplusplus
35
}
// extern "C"
36
#endif
37
38
#endif
/* BASE64_CDECODE_H */
base64_decodestate::plainchar
char plainchar
Definition:
cdecode.h:23
base64_decodestate
Definition:
cdecode.h:21
base64_decodestate::step
base64_decodestep step
Definition:
cdecode.h:22
Generated by
1.8.10