Used to convert one form of data into another, for example encoding binary data into Base64 text.
#include <base64.hpp>
|
static std::string | Base64Encode (const std::vector< uint8_t > &data) |
| Encodes the vector of binary data into UTF-8 encoded text represented as Base64. More...
|
|
static std::vector< uint8_t > | Base64Decode (const std::string &text) |
| Decodes the UTF-8 encoded text represented as Base64 into binary data. More...
|
|
◆ Base64Decode()
std::vector< uint8_t > Azure::Core::Convert::Base64Decode |
( |
const std::string & |
text | ) |
|
|
static |
- Parameters
-
text | The input UTF-8 encoded text in Base64 that needs to be decoded. |
- Returns
- The decoded binary data.
◆ Base64Encode()
std::string Azure::Core::Convert::Base64Encode |
( |
const std::vector< uint8_t > & |
data | ) |
|
|
static |
- Parameters
-
data | The input vector that contains binary data that needs to be encoded. |
- Returns
- The UTF-8 encoded text in Base64.
The documentation for this class was generated from the following files: