acl/lib_acl/include/code/acl_vstring_base64.h

36 lines
840 B
C
Raw Normal View History

2014-11-19 00:25:21 +08:00
#ifndef ACL_VSTRING_BASE64_CODE_INCLUDE_H
#define ACL_VSTRING_BASE64_CODE_INCLUDE_H
#ifdef __cplusplus
extern "C" {
#endif
#include "stdlib/acl_define.h"
#include "stdlib/acl_vstring.h"
/**
* 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>ͬ
*/
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>ַ
*/
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