Rose::StringUtility::encode_base64
Convert binary data to base‐64.
Synopsis
Declared in <src/Rose/StringUtility/Convert.h>
[[visibility]]
std::string
encode_base64(
std::vector<uint8_t> const& data,
bool do_pad = true);
Description
The base64 number system uses the characters A‐Z, a‐z, 0‐9, +, and / (in that order). The returned string does not include linefeeds. If do_pad is true then '=' characters may appear at the end to make the total length a multiple of four.
@{
Return Value
Base‐64 encoded string.
Parameters
Name |
Description |
data |
Input data to encode. |
do_pad |
Whether to pad output to a multiple of four. |
Created with MrDocs