PrivMX Endpoint v2.7.0
Loading...
Searching...
No Matches
privmx::endpoint::core::Base64 Class Reference

Static Public Member Functions

static std::string encode (const Buffer &data)
static Buffer decode (const std::string &base64_data)
static bool is (const std::string &data)

Member Function Documentation

◆ decode()

Buffer privmx::endpoint::core::Base64::decode ( const std::string & base64_data)
static

Decodes string in Base64 to buffer.

Parameters
hex_datastring to decode
Returns
buffer with decoded data

◆ encode()

std::string privmx::endpoint::core::Base64::encode ( const Buffer & data)
static

Encodes buffer to string in Base64 format.

Parameters
databuffer to encode
Returns
string in Base64 format

◆ is()

bool privmx::endpoint::core::Base64::is ( const std::string & data)
static

Checks if given string is in Base64 format.

Parameters
datastring to check
Returns
data check result

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