ゴミ箱
Functions
boost::beast::detail::base64 Namespace Reference

Functions

char const * get_alphabet ()
 
signed char const * get_inverse ()
 
std::size_t constexpr encoded_size (std::size_t n)
 Returns max chars needed to encode a base64 string. More...
 
std::size_t constexpr decoded_size (std::size_t n)
 Returns max bytes needed to decode a base64 string. More...
 
template<class = void>
std::size_t encode (void *dest, void const *src, std::size_t len)
 
template<class = void>
std::pair< std::size_t, std::size_t > decode (void *dest, char const *src, std::size_t len)
 

Function Documentation

template<class = void>
std::pair<std::size_t, std::size_t> boost::beast::detail::base64::decode ( void *  dest,
char const *  src,
std::size_t  len 
)

Decode a padded base64 string into a series of octets.

Requires

The memory pointed to by out points to valid memory of at least decoded_size(len) bytes.

Returns
The number of octets written to out, and the number of characters read from the input string, expressed as a pair.
std::size_t constexpr boost::beast::detail::base64::decoded_size ( std::size_t  n)
inline

Returns max bytes needed to decode a base64 string.

template<class = void>
std::size_t boost::beast::detail::base64::encode ( void *  dest,
void const *  src,
std::size_t  len 
)

Encode a series of octets as a padded, base64 string.

The resulting string will not be null terminated.

Requires

The memory pointed to by out points to valid memory of at least encoded_size(len) bytes.

Returns
The number of characters written to out. This will exclude any null termination.
std::size_t constexpr boost::beast::detail::base64::encoded_size ( std::size_t  n)
inline

Returns max chars needed to encode a base64 string.

char const* boost::beast::detail::base64::get_alphabet ( )
inline
signed char const* boost::beast::detail::base64::get_inverse ( )
inline