RESTinio
Namespaces | Typedefs | Functions
base64.hpp File Reference
#include <restinio/exception.hpp>
#include <restinio/utils/impl/bitops.hpp>
#include <fmt/format.h>
#include <fmt/ostream.h>
#include <string>
#include <bitset>
#include <array>
#include <exception>
#include <iostream>
#include "base64_lut.ipp"

Go to the source code of this file.

Namespaces

 restinio
 
 restinio::utils
 
 restinio::utils::base64
 

Typedefs

using restinio::utils::base64::uint_type_t = std::uint_fast32_t
 
using restinio::utils::base64::bitset24_t = std::bitset< 24 >
 

Functions

template<typename C >
const C * restinio::utils::base64::is_base64_char_lut ()
 
template<typename C >
const C * restinio::utils::base64::base64_alphabet ()
 
template<typename C >
const C * restinio::utils::base64::base64_decode_lut ()
 
bool restinio::utils::base64::is_base64_char (char c)
 
void restinio::utils::base64::check_string_is_base64 (string_view_t str)
 
uint_type_t restinio::utils::base64::uch (char ch)
 
template<unsigned int Shift>
char restinio::utils::base64::sixbits_char (uint_type_t bs)
 
std::string restinio::utils::base64::encode (string_view_t str)
 
std::string restinio::utils::base64::decode (string_view_t str)