28 #ifndef itkByteSwapper_h
29 #define itkByteSwapper_h
49 template<
typename T >
68 static bool SystemIsBigEndian();
71 static bool SystemIsLittleEndian();
73 static bool SystemIsLE() {
return SystemIsLittleEndian(); }
80 static void SwapFromSystemToBigEndian(T *p);
91 static void SwapRangeFromSystemToBigEndian(T *p,
BufferSizeType num);
100 static void SwapWriteRangeFromSystemToBigEndian(T *p,
int num,
109 static void SwapFromSystemToLittleEndian(T *p);
116 static void SwapRangeFromSystemToLittleEndian(T *p,
BufferSizeType num);
125 static void SwapWriteRangeFromSystemToLittleEndian(T *p,
int num,
134 static void Swap2(
void *p);
145 static void Swap4(
void *p);
156 static void Swap8(
void *p);
168 #ifndef ITK_MANUAL_INSTANTIATION
169 #include "itkByteSwapper.hxx"
unsigned long SizeValueType
SizeValueType BufferSizeType
Base class for most ITK classes.
Perform machine dependent byte swapping.