MCPcopy Create free account
hub / github.com/acl-dev/acl / decode_finish

Method decode_finish

lib_acl_cpp/src/mime/mime_code.cpp:150–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150void mime_code::decode_finish(string* out)
151{
152 decode(out);
153
154 /* ����������ڻ�������, �����䲻��4���ֽڶ���ԭ������ */
155
156 if (m_addInvalid) {
157 if (m_decodeCnt == 1) {
158 out->push_back(m_decodeBuf[0]);
159 } else if (m_decodeCnt == 2) {
160 out->push_back(m_decodeBuf[0]);
161 out->push_back(m_decodeBuf[1]);
162 } else if (m_decodeCnt == 3) {
163 out->push_back(m_decodeBuf[0]);
164 out->push_back(m_decodeBuf[1]);
165 out->push_back(m_decodeBuf[2]);
166 }
167 }
168 m_decodeCnt = 0;
169}
170
171void mime_code::decode(string* out)
172{

Callers

nothing calls this directly

Calls 2

decodeFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected