Apache Mesos
Namespaces | Functions
base64 Namespace Reference

Namespaces

 internal
 

Functions

std::string encode (const std::string &s)
 Encode a string to Base64 with the standard Base64 alphabet. More...
 
Try< std::string > decode (const std::string &s)
 Decode a string that is Base64-encoded with the standard Base64 alphabet. More...
 
std::string encode_url_safe (const std::string &s, bool padding=true)
 Encode a string to Base64 with a URL and filename safe alphabet. More...
 
Try< std::string > decode_url_safe (const std::string &s)
 Decode a string that is Base64-encoded with a URL and filename safe alphabet. More...
 

Function Documentation

Try<std::string> base64::decode ( const std::string &  s)
inline

Decode a string that is Base64-encoded with the standard Base64 alphabet.

See Also
RFC4648
Parameters
sThe string to decode.
Try<std::string> base64::decode_url_safe ( const std::string &  s)
inline

Decode a string that is Base64-encoded with a URL and filename safe alphabet.

See Also
RFC4648
Parameters
sThe string to decode.
std::string base64::encode ( const std::string &  s)
inline

Encode a string to Base64 with the standard Base64 alphabet.

See Also
RFC4648
Parameters
sThe string to encode.
std::string base64::encode_url_safe ( const std::string &  s,
bool  padding = true 
)
inline

Encode a string to Base64 with a URL and filename safe alphabet.

See Also
RFC4648
Parameters
sThe string to encode.
paddingTrue if padding characters ('=') should be added.