base64PHPStrictDecode overloads

Synopses

Declared in <folly/base64.h>

Decode a base64 string using PHP‐strict rules.

std::string
base64PHPStrictDecode(std::string_view s);

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

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

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;

Exceptions

Name

Thrown on

base64_decode_error

if the input is not valid base64.

Return Value

  • The decoded string.

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

Parameters

Name

Description

s

The base64‐encoded bytes to decode.

o

Pointer to the output buffer.

f

Pointer to the first input byte.

l

Pointer past the last input byte.

Created with MrDocs