absl::Base64Escape

Base64Escape overloads

Synopses

Declared in <absl/strings/escaping.h>

Encodes a src string into a base64-encoded string with padding characters. This function conforms with RFC 4648 section 4 (base64) and RFC 2045.

std::string
Base64Escape(std::string_view src);
» more...

Deprecated overload of Base64Escape() that writes to a dest buffer.

[[deprecated("Use the string-returning version of Base64Escape()")]]
void
Base64Escape(
    std::string_view src,
    std::string* dest);
» more...

Return Value

The base64-encoded string.

Parameters

NameDescription
srcThe string to encode.
destThe output string that receives the base64-encoded result.