openMSX
Functions
Base64 Namespace Reference

Functions

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

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

References xrange().

◆ encode()

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

Definition at line 41 of file Base64.cc.

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