codex
Loading...
Searching...
No Matches
base64.cpp File Reference
#include "base64.hpp"
#include <bit>
#include <iostream>
Include dependency graph for base64.cpp:

Namespaces

namespace  anonymous_namespace{base64.cpp}
 

Functions

template<unsigned char M>
constexpr auto anonymous_namespace{base64.cpp}::rmask (char c)
 Applies a mask and shifts right.
 
template<unsigned char M>
constexpr auto anonymous_namespace{base64.cpp}::lmask (char c)
 Shifts left and applies a mask.
 
template<unsigned char LM>
constexpr auto anonymous_namespace{base64.cpp}::merge (char c0, char c1)
 Merges parts of two bytes according to a mask.
 
template<auto max>
constexpr bool anonymous_namespace{base64.cpp}::check (auto ...vs)
 Checks that no value is equal to max, which must be a power of 2.
 
constexpr auto anonymous_namespace{base64.cpp}::lu (const auto &t, auto c)
 Looks up the value of byte c in look-up table t.