lmms
Cross-platform music production software
Loading...
Searching...
No Matches
endian_handling.h File Reference
#include <bit>
#include <type_traits>

Go to the source code of this file.

Namespaces

namespace  lmms

Functions

constexpr bool lmms::isLittleEndian () noexcept
constexpr bool lmms::isBigEndian () noexcept
template<typename Int>
requires (sizeof(Int) <= 4 && std::is_integral_v<Int>)
constexpr Int lmms::byteswap (Int i) noexcept
 TODO C++23: Use std::byteswap.
template<std::endian e, typename Int>
constexpr Int lmms::byteswapIf (Int i) noexcept
template<typename Int>
constexpr Int lmms::byteswapIfBE (Int i) noexcept
template<typename Int>
constexpr Int lmms::byteswapIfLE (Int i) noexcept