base64URLDecode overloads
Synopses
Declared in <folly/base64.h>
Decode a URL‐safe base64 string.
std::string
base64URLDecode(std::string_view s);
Decode a URL‐safe base64 string into an output buffer.
constexpr
base64_decode_result
base64URLDecode(
std::string_view s,
char* o) noexcept;
Decode a URL‐safe base64 byte range into an output buffer.
constexpr
base64_decode_result
base64URLDecode(
char const* f,
char const* l,
char* o) noexcept;
Exceptions
Name |
Thrown on |
if the input is not valid base64URL. |
Return Value
-
The decoded string.
-
The decode result with success flag and output end pointer.
Parameters
Name |
Description |
s |
The base64URL‐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