folly::base64Encode

base64Encode overloads

Synopses

Declared in <folly/base64.h>

Encode a string to standard base64.

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

Encode a byte range to standard base64.

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

Return Value

  • The base64-encoded string.
  • A pointer past the last byte written.

Parameters

NameDescription
sThe bytes to encode.
fPointer to the first input byte.
lPointer past the last input byte.
oPointer to the output buffer.