Elaztek Developer Hub
Blamite Game Engine - Strings  00427.01.12.25.2146.blamite
A library containing general purpose utilities and classes for use in multiple projects.
base64.hpp File Reference
#include <algorithm>
#include <array>
#include <cassert>
#include <cstdint>
#include <cstring>
#include <stdexcept>
#include <string>
#include <string_view>
+ Include dependency graph for base64.hpp:

Go to the source code of this file.

Namespaces

 base64
 
 base64::detail
 

Functions

template<class To , class From >
std::enable_if_t< sizeof(To)==sizeof(From) &&std::is_trivially_copyable_v< From > &&std::is_trivially_copyable_v< To >, To > base64::detail::bit_cast (const From &src) noexcept
 
template<class OutputBuffer , class InputIterator >
OutputBuffer base64::encode_into (InputIterator begin, InputIterator end)
 
template<class OutputBuffer >
OutputBuffer base64::encode_into (std::string_view data)
 
std::string base64::to_base64 (std::string_view data)
 
template<class OutputBuffer >
OutputBuffer base64::decode_into (std::string_view base64Text)
 
template<class OutputBuffer , class InputIterator >
OutputBuffer base64::decode_into (InputIterator begin, InputIterator end)
 
std::string base64::from_base64 (std::string_view data)
 

Variables

constexpr char base64::detail::padding_char {'='}
 
constexpr uint32_t base64::detail::bad_char {0x01FFFFFF}
 
constexpr std::array< char, 256 > base64::detail::encode_table_0
 
constexpr std::array< char, 256 > base64::detail::encode_table_1