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

Function Base64Decode

library/cpp/string_utils/base64/base64.cpp:257–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257size_t Base64Decode(void* dst, const char* b, const char* e) {
258 static const TImpl IMPL = GetImpl();
259 const auto size = e - b;
260 Y_ENSURE(!(size % 4), "incorrect input length for base64 decode");
261 if (Y_LIKELY(size < 8)) {
262 return Base64DecodePlain(dst, b, e);
263 }
264
265 size_t outLen;
266 IMPL.Decode(b, size, (char*)dst, &outLen);
267
268 return outLen;
269}
270
271size_t Base64DecodeUneven(void* dst, const TStringBuf s) {
272 const size_t tailSize = s.length() % 4;

Callers 1

Base64DecodeUnevenFunction · 0.70

Calls 3

GetImplFunction · 0.85
Base64DecodePlainFunction · 0.85
DecodeMethod · 0.45

Tested by

no test coverage detected