Gazebo Common

API Reference

6.0.0

#include <Base64.hh>

Static Public Member Functions

static std::string Decode (const std::string &_encodedString)
 Decode a base64 string.
 
static void Encode (const char *_bytesToEncode, unsigned int _len, std::string &_result)
 Encode a binary string into base 64, padded with '='.
 

Member Function Documentation

◆ Decode()

static std::string Decode ( const std::string _encodedString)
static

Decode a base64 string.

Parameters
[in]_encodedStringA base 64 encoded string.
Returns
The decoded string.

◆ Encode()

static void Encode ( const char *  _bytesToEncode,
unsigned int  _len,
std::string _result 
)
static

Encode a binary string into base 64, padded with '='.

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

The documentation for this class was generated from the following file: