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 encoded octets. More...

#include <base64.hpp>

Static Public Member Functions

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

Detailed Description

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.

Member Function Documentation

◆ Base64Decode()

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