28 #ifndef itkByteSwapper_h 29 #define itkByteSwapper_h 49 template<
typename T >
132 static void Swap2(
void *p);
136 static void Swap2Range(
void *p, BufferSizeType num);
140 static void SwapWrite2Range(
void *p, BufferSizeType num, OStreamType *fp);
143 static void Swap4(
void *p);
147 static void Swap4Range(
void *p, BufferSizeType num);
151 static void SwapWrite4Range(
void *p, BufferSizeType num, OStreamType *fp);
154 static void Swap8(
void *p);
158 static void Swap8Range(
void *p, BufferSizeType num);
162 static void SwapWrite8Range(
void *p, BufferSizeType num, OStreamType *fp);
170 #ifndef ITK_MANUAL_INSTANTIATION 171 #include "itkByteSwapper.hxx" static void SwapFromSystemToBigEndian(T *p)
SmartPointer< const Self > ConstPointer
static void SwapWrite2Range(void *p, BufferSizeType num, OStreamType *fp)
static bool SystemIsBigEndian()
SizeValueType BufferSizeType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
unsigned long SizeValueType
static void SwapRangeFromSystemToBigEndian(T *p, BufferSizeType num)
static void Swap8(void *p)
static void Swap2(void *p)
static void SwapWrite8Range(void *p, BufferSizeType num, OStreamType *fp)
static void SwapRangeFromSystemToLittleEndian(T *p, BufferSizeType num)
static void Swap2Range(void *p, BufferSizeType num)
static bool SystemIsLittleEndian()
static void SwapWriteRangeFromSystemToLittleEndian(T *p, int num, OStreamType *fp)
static void SwapFromSystemToLittleEndian(T *p)
static void Swap4(void *p)
static void Swap8Range(void *p, BufferSizeType num)
static void Swap4Range(void *p, BufferSizeType num)
static void SwapWrite4Range(void *p, BufferSizeType num, OStreamType *fp)
static void SwapWriteRangeFromSystemToBigEndian(T *p, int num, OStreamType *fp)
Base class for most ITK classes.
Perform machine dependent byte swapping.
SmartPointer< Self > Pointer
void operator=(const ByteSwapper &) ITK_DELETE_FUNCTION