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

Function Base64DecodeBufSize

library/cpp/string_utils/base64/base64.h:9–11  ·  view source on GitHub ↗

@return Size of the buffer required to decode Base64 encoded data of size `len`. */

Source from the content-addressed store, hash-verified

7/* @return Size of the buffer required to decode Base64 encoded data of size `len`.
8 */
9constexpr size_t Base64DecodeBufSize(const size_t len) noexcept {
10 return (len + 3) / 4 * 3;
11}
12
13/* Decode Base64 encoded data. Can decode both regular Base64 and Base64URL encoded data. Can decode
14 * only valid Base64[URL] data, behaviour for invalid data is unspecified.

Callers 5

Y_UNIT_TESTFunction · 0.85
Base64DecodeFunction · 0.85
Base64StrictDecodeFunction · 0.85
Base64DecodeUnevenFunction · 0.85
TRandomDataHolderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected