WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
SwapByteOrder.hpp File Reference
#include "wpi/util/STLForwardCompat.hpp"
#include "wpi/util/bit.hpp"
#include <cstdint>
#include <type_traits>

Go to the source code of this file.

Namespaces

namespace  wpi
namespace  wpi::util
namespace  wpi::util::sys

Functions

unsigned char wpi::util::sys::getSwappedBytes (unsigned char C)
signed char wpi::util::sys::getSwappedBytes (signed char C)
char wpi::util::sys::getSwappedBytes (char C)
unsigned short wpi::util::sys::getSwappedBytes (unsigned short C)
signed short wpi::util::sys::getSwappedBytes (signed short C)
unsigned int wpi::util::sys::getSwappedBytes (unsigned int C)
signed int wpi::util::sys::getSwappedBytes (signed int C)
unsigned long wpi::util::sys::getSwappedBytes (unsigned long C)
signed long wpi::util::sys::getSwappedBytes (signed long C)
unsigned long long wpi::util::sys::getSwappedBytes (unsigned long long C)
signed long long wpi::util::sys::getSwappedBytes (signed long long C)
float wpi::util::sys::getSwappedBytes (float C)
double wpi::util::sys::getSwappedBytes (double C)
template<typename T>
std::enable_if_t< std::is_enum_v< T >, T > wpi::util::sys::getSwappedBytes (T C)
template<typename T>
void wpi::util::sys::swapByteOrder (T &Value)

Variables

constexpr bool wpi::util::sys::IsBigEndianHost
static const bool wpi::util::sys::IsLittleEndianHost = !IsBigEndianHost