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

Method decode_update

lib_acl_cpp/src/mime/mime_code.cpp:132–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132void mime_code::decode_update(const char *src, int n, string* out)
133{
134 int i = 0;
135
136 while (n > 0) {
137 if (m_decodeCnt == (int) sizeof(m_decodeBuf)) {
138 decode(out);
139 }
140 i = n;
141 if (i > (int) sizeof(m_decodeBuf) - m_decodeCnt)
142 i = (int) sizeof(m_decodeBuf) - m_decodeCnt;
143 memcpy(m_decodeBuf + m_decodeCnt, src, i);
144 src += i;
145 n -= i;
146 m_decodeCnt += i;
147 }
148}
149
150void mime_code::decode_finish(string* out)
151{

Callers

nothing calls this directly

Calls 2

decodeFunction · 0.85
memcpyFunction · 0.85

Tested by

no test coverage detected