Castor3D 0.16.0
Multiplatform 3D engine
Namespaces | Functions
Endianness.hpp File Reference

Namespaces

namespace  castor
 

Functions

constexpr bool castor::isBigEndian () noexcept
 Detects if the current system is big endian.
 
constexpr bool castor::isLittleEndian () noexcept
 Detects if the current system is little endian.
 
template<typename T >
constexpr T & castor::switchEndianness (T &value) noexcept
 Convert from little or big endian to the other.
 
template<typename T >
constexpr T castor::switchEndianness (T const &value)
 Convert from little or big endian to the other.
 
template<typename T >
constexpr T & castor::systemEndianToBigEndian (T &value) noexcept
 Convert the given value to big endian if needed.
 
template<typename T >
constexpr T castor::systemEndianToBigEndian (T const &value)
 Convert the given value to big endian if needed.
 
template<typename T , size_t N>
constexpr Array< T, N > & castor::systemEndianToBigEndian (Array< T, N > &value) noexcept
 Convert the given value to big endian if needed.
 
template<typename T , size_t N>
constexpr Array< T, N > castor::systemEndianToBigEndian (Array< T, N > const &value)
 Convert the given value to big endian if needed.
 
template<typename T >
constexpr Vector< T > & castor::systemEndianToBigEndian (Vector< T > &value) noexcept
 Convert the given value to big endian if needed.
 
template<typename T >
constexpr Vector< T > castor::systemEndianToBigEndian (Vector< T > const &value)
 Convert the given value to big endian if needed.
 
template<typename T >
constexpr T & castor::systemEndianToLittleEndian (T &value) noexcept
 Convert the given value to little endian if needed.
 
template<typename T >
constexpr T castor::systemEndianToLittleEndian (T const &value)
 Convert the given value to little endian if needed.
 
template<typename T , size_t N>
constexpr Array< T, N > & castor::systemEndianToLittleEndian (Array< T, N > &value) noexcept
 Convert the given value to little endian if needed.
 
template<typename T , size_t N>
constexpr Array< T, N > castor::systemEndianToLittleEndian (Array< T, N > const &value)
 Convert the given value to little endian if needed.
 
template<typename T >
Vector< T > & castor::systemEndianToLittleEndian (Vector< T > &value) noexcept
 Convert the given value to little endian if needed.
 
template<typename T >
Vector< T > castor::systemEndianToLittleEndian (Vector< T > const &value)
 Convert the given value to little endian if needed.
 
template<typename T >
constexpr T & castor::bigEndianToSystemEndian (T &value) noexcept
 Convert the given big endian value to system endian if needed.
 
template<typename T >
constexpr T castor::bigEndianToSystemEndian (T const &value)
 Convert the given big endian value to system endian if needed.
 
template<typename T , size_t N>
constexpr Array< T, N > & castor::bigEndianToSystemEndian (Array< T, N > &value) noexcept
 Convert the given value to big endian if needed.
 
template<typename T , size_t N>
constexpr Array< T, N > castor::bigEndianToSystemEndian (Array< T, N > const &value)
 Convert the given value to big endian if needed.
 
template<typename T >
Vector< T > & castor::bigEndianToSystemEndian (Vector< T > &value) noexcept
 Convert the given value to big endian if needed.
 
template<typename T >
Vector< T > castor::bigEndianToSystemEndian (Vector< T > const &value)
 Convert the given value to big endian if needed.
 
template<typename T >
constexpr T & castor::littleEndianToSystemEndian (T &value) noexcept
 Convert the given little endian value to system endian if needed.
 
template<typename T >
constexpr T castor::littleEndianToSystemEndian (T const &value)
 Convert the given little endian value to system endian if needed.
 
template<typename T , size_t N>
constexpr Array< T, N > & castor::littleEndianToSystemEndian (Array< T, N > &value) noexcept
 Convert the given value to little endian if needed.
 
template<typename T , size_t N>
constexpr Array< T, N > castor::littleEndianToSystemEndian (Array< T, N > const &value)
 Convert the given value to little endian if needed.
 
template<typename T >
Vector< T > & castor::littleEndianToSystemEndian (Vector< T > &value) noexcept
 Convert the given value to little endian if needed.
 
template<typename T >
Vector< T > castor::littleEndianToSystemEndian (Vector< T > const &value)
 Convert the given value to little endian if needed.