Embedded Artistry Framework
Embedded Systems C++ Framework
Namespaces | Functions
endian.hpp File Reference
#include <algorithm>
#include <array>
#include <climits>
Include dependency graph for endian.hpp:
This graph shows which files directly or indirectly include this file:

Namespaces

 embutil
 Embedded framework utility functions and classes.
 

Functions

template<class T >
constexpr std::enable_if< std::is_unsigned< T >::value, T >::type embutil::byteswap (T i, T j=0u, std::size_t n=0u) noexcept
 Recursive constexpr byteswap implementation without C++17 fold expressions. More...
 
template<typename T >
void embutil::SwapEndian (T &val, typename std::enable_if< std::is_arithmetic< T >::value, std::nullptr_t >::type unused=nullptr) noexcept
 Non-constexpr Robust Endian Swap. More...
 
template<typename T >
void embutil::SwapEndian_UB (T &val) noexcept
 Endian swap using undefined behavior. More...