folly::base64PHPStrictDecode

base64PHPStrictDecode overloads

Synopses

Declared in <folly/base64.h>

Decode a base64 string using PHP-strict rules.

std::string
base64PHPStrictDecode(std::string_view s);
» more...

Decode a base64 string using PHP-strict rules into an output buffer.

constexpr
base64_decode_result
base64PHPStrictDecode(
    std::string_view s,
    char* o) noexcept;
» more...

Decode a base64 byte range using PHP-strict rules into an output buffer.

constexpr
base64_decode_result
base64PHPStrictDecode(
    char const* f,
    char const* l,
    char* o) noexcept;
» more...

Exceptions

NameThrown on
base64_decode_errorif the input is not valid base64.

Return Value

  • The decoded string.
  • The decode result with success flag and output end pointer.

Parameters

NameDescription
sThe base64-encoded bytes to decode.
oPointer to the output buffer.
fPointer to the first input byte.
lPointer past the last input byte.