#include <mime_uucode.hpp>
|
| mime_uucode (bool addCrlf=false, bool addInvalid=false) |
|
| ~mime_uucode (void) |
|
| mime_code (bool addCrlf, bool addInvalid, const char *encoding_type) |
|
virtual | ~mime_code (void)=0 |
|
const char * | get_encoding_type (void) const |
|
virtual void | encode_update (const char *src, int n, string *out) |
|
virtual void | encode_finish (string *out) |
|
virtual void | decode_update (const char *src, int n, string *out) |
|
virtual void | decode_finish (string *out) |
|
virtual void | reset (void) |
|
virtual void | add_crlf (bool on) |
|
virtual void | add_invalid (bool on) |
|
void | init (const unsigned char *toTab, const unsigned char *unTab, unsigned char fillChar) |
|
void | set_status (bool encoding=true) |
|
virtual int | push_pop (const char *in, size_t len, string *out, size_t max=0) |
|
virtual int | pop_end (string *out, size_t max=0) |
|
virtual void | clear (void) |
|
| pipe_stream () |
|
virtual | ~pipe_stream () |
|
◆ mime_uucode()
acl::mime_uucode::mime_uucode |
( |
bool |
addCrlf = false , |
|
|
bool |
addInvalid = false |
|
) |
| |
构造函数
- 参数
-
addCrlf | {bool} 非流式编码时是否在末尾添加 "\r\n" |
addInvalid | {bool} 流式解码时是否遇到非法字符是否原样拷贝 |
◆ ~mime_uucode()
acl::mime_uucode::~mime_uucode |
( |
void |
| ) |
|
◆ decode()
static void acl::mime_uucode::decode |
( |
const char * |
in, |
|
|
int |
n, |
|
|
string * |
out |
|
) |
| |
|
static |
静态解码函数,直接将输入数据进行解析并存入用户缓冲区
- 参数
-
in | {const char*} 输入数据地址 |
n | {int} 数据长度 |
out | {string*} 存储解析结果 |
◆ encode()
static void acl::mime_uucode::encode |
( |
const char * |
in, |
|
|
int |
n, |
|
|
string * |
out |
|
) |
| |
|
static |
静态编码函数,直接将输入数据进行编码同时存入用户缓冲区 用户缓冲区
- 参数
-
in | {const char*} 输入数据地址 |
n | {int} 输入数据长度 |
out | {string*} 存储结果的缓冲区 |
该类的文档由以下文件生成: