MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / encode

Function encode

cmake/Windows/Contrib/Inetc/inetc.cpp:294–301  ·  view source on GitHub ↗

Base64 encode one byte */

Source from the content-addressed store, hash-verified

292
293/* Base64 encode one byte */
294static TCHAR encode(unsigned char u) {
295
296 if(u < 26) return TEXT('A')+u;
297 if(u < 52) return TEXT('a')+(u-26);
298 if(u < 62) return TEXT('0')+(u-52);
299 if(u == 62) return TEXT('+');
300 return TEXT('/');
301}
302
303TCHAR *encode_base64(int size, TCHAR *src, TCHAR *dst) {
304

Callers 5

writeBinaryDataArray_Method · 0.85
writeBinary_Method · 0.85
writeToMethod · 0.85
encode_base64Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected