Used to convert one form of data into another, for example encoding binary data into Base64 encoded octets.
More...
#include <base64.hpp>
|
static std::string | Base64Encode (const std::vector< uint8_t > &data) |
| Encodes a vector of binary data using Base64. More...
|
|
static std::vector< uint8_t > | Base64Decode (const std::string &text) |
| Decodes a Base64 encoded data into a vector of binary data. More...
|
|
- Note
- Base64 encoded data is a subset of the ASCII encoding (characters 0-127). As such, it can be considered a subset of UTF-8.
◆ Base64Decode()
std::vector< uint8_t > Azure::Core::Convert::Base64Decode |
( |
const std::string & |
text | ) |
|
|
static |
- Parameters
-
text | Base64 encoded data 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 to be encoded. |
- Returns
- The Base64 encoded contents of the vector.
The documentation for this class was generated from the following files: