TuyaOS
include
components
tal_system_service
include
utilities
uni_base64.h
浏览该文件的文档.
1
8
#ifndef _UNI_BASE64_H
9
#define _UNI_BASE64_H
10
11
#ifdef __cplusplus
12
extern
"C"
{
13
#endif
14
15
20
#define TY_BASE64_BUF_LEN_CALC(slen) (((slen) / 3 + ((slen) % 3 != 0)) * 4 + 1)
// 1 for '\0'
21
33
char
*
tuya_base64_encode
(
const
unsigned
char
* bindata,
char
* base64,
int
binlength);
34
43
int
tuya_base64_decode
(
const
char
* base64,
unsigned
char
* bindata);
44
45
#ifdef __cplusplus
46
}
47
#endif
48
#endif
49
tuya_base64_encode
char * tuya_base64_encode(const unsigned char *bindata, char *base64, int binlength)
tuya_base64_encode
tuya_base64_decode
int tuya_base64_decode(const char *base64, unsigned char *bindata)
tuya_base64_decode
制作者
1.9.4