nsnake
Classic snake game for the terminal
Loading...
Searching...
No Matches
Utils::Base64 Namespace Reference

Utilities to encode and decode from the Base64 format. More...

Functions

std::string encode (std::string str)
 Transforms #str into a Base64 equivalent.
 
std::string decode (std::string const &s)
 Transforms a Base64-encoded #str into it's regular string equivalent.
 

Detailed Description

Utilities to encode and decode from the Base64 format.

Function Documentation

◆ decode()

std::string Utils::Base64::decode ( std::string const & s)

Transforms a Base64-encoded #str into it's regular string equivalent.

Definition at line 488 of file Utils.cpp.

◆ encode()

std::string Utils::Base64::encode ( std::string str)

Transforms #str into a Base64 equivalent.

Definition at line 439 of file Utils.cpp.