folly::base64PHPStrictDecodeRequiredOutputSize

base64PHPStrictDecodeRequiredOutputSize overloads

Synopses

Declared in <folly/base64.h>

Compute the output buffer size required by PHP-strict decoding of a string.

constexpr
std::size_t
base64PHPStrictDecodeRequiredOutputSize(std::string_view s) noexcept;
» more...

Compute the output buffer size required by PHP-strict decoding of a range.

constexpr
std::size_t
base64PHPStrictDecodeRequiredOutputSize(
    char const* f,
    char const* l) noexcept;
» more...

Return Value

The number of bytes the decoded output may occupy.

Parameters

NameDescription
sThe base64-encoded input.
fPointer to the first input byte.
lPointer past the last input byte.