MCPcopy Create free account
hub / github.com/catboost/catboost / Base64Encode

Function Base64Encode

library/cpp/string_utils/base64/base64.cpp:294–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294char* Base64Encode(char* outstr, const unsigned char* instr, size_t len) {
295 static const TImpl IMPL = GetImpl();
296 if (Y_LIKELY(len < 8)) {
297 return Base64EncodePlain(outstr, instr, len);
298 }
299
300 size_t outLen;
301 IMPL.Encode((char*)instr, len, outstr, &outLen);
302
303 *(outstr + outLen) = '\0';
304 return outstr + outLen;
305}

Callers

nothing calls this directly

Calls 3

GetImplFunction · 0.85
Base64EncodePlainFunction · 0.85
EncodeMethod · 0.45

Tested by

no test coverage detected