28#ifndef itkByteSwapper_h
29#define itkByteSwapper_h
61#ifndef ITK_FUTURE_LEGACY_REMOVE
64 [[deprecated(
"ByteSwapper::OStreamType is deprecated from ITK 6. Just use `std::ostream` instead!")]] =
76 return m_SystemIsBigEndian;
82 return SystemIsBigEndian();
87 return !m_SystemIsBigEndian;
93 return SystemIsLittleEndian();
168 static constexpr bool m_SystemIsBigEndian{
169#ifdef CMAKE_WORDS_BIGENDIAN
178#ifndef ITK_MANUAL_INSTANTIATION
179# include "itkByteSwapper.hxx"
Perform machine dependent byte swapping.
static void SwapBytes(T &)
static constexpr bool SystemIsBE()
static void SwapWriteRangeFromSystemToLittleEndian(const T *p, int num, std::ostream *fp)
static constexpr bool SystemIsBigEndian()
static constexpr bool SystemIsLE()
static void SwapRangeFromSystemToLittleEndian(T *p, BufferSizeType num)
SizeValueType BufferSizeType
~ByteSwapper() override=default
static constexpr bool SystemIsLittleEndian()
static void SwapWriteRangeFromSystemToBigEndian(const T *p, int num, std::ostream *fp)
static void SwapWriteRange(const T *ptr, SizeValueType numberOfElements, std::ostream &outputStream)
static void SwapFromSystemToLittleEndian(T *p)
static void SwapRangeFromSystemToBigEndian(T *p, BufferSizeType num)
static void SwapFromSystemToBigEndian(T *p)
Base class for most ITK classes.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType