folly::base64URLDecodeRuntime

base64URLDecodeRuntime overloads

Synopses

Declared in <folly/base64.h>

Decode a URL-safe base64 string into an output buffer at runtime.

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

Decode a URL-safe base64 byte range into an output buffer at runtime.

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

Return Value

The decode result with success flag and output end pointer.

Parameters

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