MXL : Media eXchange Layer
MXL
Loading...
Searching...
No Matches
Base64.hpp File Reference
#include <cassert>
#include <cstdint>
#include <cstring>
#include <algorithm>
#include <array>
#include <stdexcept>
#include <string>
#include <string_view>
#include <type_traits>
Include dependency graph for Base64.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  base64
namespace  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::decode_into (InputIterator begin, InputIterator end)
template<class OutputBuffer>
OutputBuffer base64::decode_into (std::string_view base64Text)
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::from_base64 (std::string_view data)
std::string base64::to_base64 (std::string_view data)

Variables

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