acl/lib_acl/include/code/acl_vstring_base64.h

36 lines
846 B
C
Raw Normal View History

#ifndef ACL_VSTRING_BASE64_CODE_INCLUDE_H
2014-11-19 00:25:21 +08:00
#define ACL_VSTRING_BASE64_CODE_INCLUDE_H
#ifdef __cplusplus
extern "C" {
#endif
2017-06-02 14:47:24 +08:00
#include "../stdlib/acl_define.h"
#include "../stdlib/acl_vstring.h"
2014-11-19 00:25:21 +08:00
/**
* BASE64 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* @param vp {ACL_VSTRING*} <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* @param in {const char*} Դ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* @param len {int} in Դ<EFBFBD><EFBFBD><EFBFBD>ݵij<EFBFBD><EFBFBD><EFBFBD>
* @return {ACL_VSTRING*} <EFBFBD><EFBFBD> vp <EFBFBD><EFBFBD>ͬ
2014-11-19 00:25:21 +08:00
*/
ACL_API ACL_VSTRING *acl_vstring_base64_encode(ACL_VSTRING *vp,
const char *in, int len);
2014-11-19 00:25:21 +08:00
/**
* BASE64 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* @param vp {ACL_VSTRING*} <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* @param in {const char*} <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* @param len {int} in <EFBFBD><EFBFBD><EFBFBD>ݳ<EFBFBD><EFBFBD><EFBFBD>
* @return {ACL_VSTRING*} NULL: <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><EFBFBD>; !=NULL: <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> vp <EFBFBD><EFBFBD>ͬ<EFBFBD><EFBFBD>ַ
2014-11-19 00:25:21 +08:00
*/
ACL_API ACL_VSTRING *acl_vstring_base64_decode(ACL_VSTRING *vp,
const char *in, int len);
2014-11-19 00:25:21 +08:00
#ifdef __cplusplus
}
#endif
#endif