The Battle for Wesnoth  1.19.7+dev
Functions
base64 Namespace Reference

Functions

std::vector< uint8_t > decode (std::string_view in)
 
std::string encode (utils::byte_string_view bytes)
 

Function Documentation

◆ decode()

std::vector< uint8_t > base64::decode ( std::string_view  in)

Definition at line 221 of file base64.cpp.

References in.

Referenced by BOOST_AUTO_TEST_CASE(), and image::load_image_data_uri().

◆ encode()

std::string base64::encode ( utils::byte_string_view  bytes)

Definition at line 225 of file base64.cpp.

Referenced by BOOST_AUTO_TEST_CASE(), and filesystem::read_file_as_data_uri().