azure-core
Static Public Member Functions | List of all members
Azure::Core::Convert Class Referencefinal

Used to convert one form of data into another, for example encoding binary data into Base64 text.

#include <base64.hpp>

Static Public Member Functions

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...
 

Member Function Documentation

◆ Base64Decode()

std::vector< uint8_t > Azure::Core::Convert::Base64Decode ( const std::string &  text)
static
Parameters
textThe 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
dataThe 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: