Functions
Base64.hh File Reference
#include <string>
#include "gazebo/util/system.hh"
Include dependency graph for Base64.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

GZ_COMMON_VISIBLE std::string Base64Decode (const std::string &_encodedString)
 Decode a base64 string. More...
 
GZ_COMMON_VISIBLE void Base64Encode (const char *_bytesToEncode, unsigned int _len, std::string &_result)
 Encode a binary string into base 64. More...
 

Function Documentation

GZ_COMMON_VISIBLE std::string Base64Decode ( const std::string &  _encodedString)

Decode a base64 string.

Parameters
[in]_encodedStringA base 64 encoded string.
Returns
The decoded string.
GZ_COMMON_VISIBLE void Base64Encode ( const char *  _bytesToEncode,
unsigned int  _len,
std::string &  _result 
)

Encode a binary string into base 64.

Parameters
[in]_bytesToEncodeString of bytes to encode.
[in]_lenLength of _bytesToEncode.
[out]_resultBased64 string is appended to this string.