28#ifndef itkByteSwapper_h
29#define itkByteSwapper_h
72 return m_SystemIsBigEndian;
78 return SystemIsBigEndian();
83 return !m_SystemIsBigEndian;
89 return SystemIsLittleEndian();
202 static constexpr bool m_SystemIsBigEndian{
203#ifdef CMAKE_WORDS_BIGENDIAN
212#ifndef ITK_MANUAL_INSTANTIATION
213# include "itkByteSwapper.hxx"
Perform machine dependent byte swapping.
static void SwapBytes(T &)
static constexpr bool SystemIsBE()
static void Swap4(void *ptr)
static void Swap8Range(void *ptr, BufferSizeType num)
static void Swap2(void *pin)
static constexpr bool SystemIsBigEndian()
static void SwapWrite8Range(const void *ptr, BufferSizeType num, OStreamType *fp)
static constexpr bool SystemIsLE()
static void SwapRangeFromSystemToLittleEndian(T *p, BufferSizeType num)
SizeValueType BufferSizeType
static void SwapWriteRangeFromSystemToLittleEndian(const T *p, int num, OStreamType *fp)
static void Swap4Range(void *ptr, BufferSizeType num)
static void SwapWriteRangeFromSystemToBigEndian(const T *p, int num, OStreamType *fp)
static void Swap2Range(void *ptr, BufferSizeType num)
~ByteSwapper() override=default
static void SwapWrite4Range(const void *ptr, BufferSizeType num, OStreamType *fp)
static constexpr bool SystemIsLittleEndian()
static void SwapFromSystemToLittleEndian(T *p)
static void SwapWrite2Range(const void *ptr, BufferSizeType num, OStreamType *fp)
static void SwapRangeFromSystemToBigEndian(T *p, BufferSizeType num)
static void SwapFromSystemToBigEndian(T *p)
static void Swap8(void *ptr)
Base class for most ITK classes.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType