Base64 Namespace Reference


std::string encode (std::span< const uint8_t > input)
std::pair< MemBuffer< uint8_t >, size_t > decode (std::string_view input)
bool decode_inplace (std::string_view input, std::span< uint8_t > output)

Function Documentation

◆ decode()

std::pair< openmsx::MemBuffer< uint8_t >, size_t > Base64::decode ( std::string_view  input)

Definition at line 89 of file

References openmsx::MemBuffer< T, ALIGNMENT >::resize(), and xrange().

◆ decode_inplace()

bool Base64::decode_inplace ( std::string_view  input,
std::span< uint8_t >  output 

Definition at line 126 of file

References xrange().

◆ encode()

std::string Base64::encode ( std::span< const uint8_t >  input)

Definition at line 41 of file

References ranges::copy(), and xrange().