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();
102 SwapFromSystemToBigEndian(T * p);
124 SwapWriteRangeFromSystemToBigEndian(
const T * p,
int num, std::ostream * fp);
133 SwapFromSystemToLittleEndian(T * p);
151 SwapWriteRangeFromSystemToLittleEndian(
const T * p,
int num, std::ostream * fp);
166 SwapWriteRange(
const T * buffer,
SizeValueType numberOfElements, std::ostream & outputStream);
168 static constexpr
bool m_SystemIsBigEndian{
169 #ifdef CMAKE_WORDS_BIGENDIAN
178 #ifndef ITK_MANUAL_INSTANTIATION
179 # include "itkByteSwapper.hxx"