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

Method encode_update

lib_acl_cpp/src/mime/mime_quoted_printable.cpp:41–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void mime_quoted_printable::encode_update(const char *src, int n, string* out)
42{
43 int i = 0;
44
45 while (n > 0) {
46 if (m_encodeCnt == (int) sizeof(m_encodeBuf)) {
47 encode(out);
48 }
49 i = n;
50 if (i > (int) sizeof(m_encodeBuf) - m_encodeCnt) {
51 i = (int) sizeof(m_encodeBuf) - m_encodeCnt;
52 }
53 memcpy(m_encodeBuf + m_encodeCnt, src, i);
54 m_encodeCnt += i;
55 src += i;
56 n -= i;
57 }
58}
59
60static char hexchars[] = "0123456789ABCDEF";
61

Callers 1

encodeMethod · 0.45

Calls 2

encodeFunction · 0.85
memcpyFunction · 0.85

Tested by

no test coverage detected