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);

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);

Return Value

The base64‐encoded string.

Parameters

Name

Description

src

The string to encode.

dest

The output string that receives the base64‐encoded result.

Created with MrDocs