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

Method decode_update

lib_acl_cpp/src/mime/mime_quoted_printable.cpp:160–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158#endif
159
160void mime_quoted_printable::decode_update(const char *src, int n, string* out)
161{
162 int i = 0;
163
164 while (n > 0) {
165 if (m_decodeCnt == (int) sizeof(m_decodeBuf)) {
166 decode(out);
167 }
168 i = n;
169 if (i > (int) sizeof(m_decodeBuf) - m_decodeCnt) {
170 i = (int) sizeof(m_decodeBuf) - m_decodeCnt;
171 }
172 memcpy(m_decodeBuf + m_decodeCnt, src, i);
173 src += i;
174 n -= i;
175 m_decodeCnt += i;
176 }
177}
178
179void mime_quoted_printable::decode_finish(string* out)
180{

Callers 1

decodeMethod · 0.45

Calls 2

decodeFunction · 0.85
memcpyFunction · 0.85

Tested by

no test coverage detected