43 #define VTK_BYTE_SWAP_DECL(T) \
44 static void SwapLE(T* p); \
45 static void SwapBE(T* p); \
46 static void SwapLERange(T* p, size_t num); \
47 static void SwapBERange(T* p, size_t num); \
48 static bool SwapLERangeWrite(const T* p, size_t num, FILE* file); \
49 static bool SwapBERangeWrite(const T* p, size_t num, FILE* file); \
50 static void SwapLERangeWrite(const T* p, size_t num, ostream* os); \
51 static void SwapBERangeWrite(const T* p, size_t num, ostream* os)
65 #undef VTK_BYTE_SWAP_DECL
71 static void Swap2LE(
void* p);
72 static void Swap4LE(
void* p);
73 static void Swap8LE(
void* p);
79 static void Swap2LERange(
void* p,
size_t num);
80 static void Swap4LERange(
void* p,
size_t num);
81 static void Swap8LERange(
void* p,
size_t num);
88 static bool SwapWrite2LERange(
void const* p,
size_t num, FILE* f);
89 static bool SwapWrite4LERange(
void const* p,
size_t num, FILE* f);
90 static bool SwapWrite8LERange(
void const* p,
size_t num, FILE* f);
91 static void SwapWrite2LERange(
void const* p,
size_t num, ostream* os);
92 static void SwapWrite4LERange(
void const* p,
size_t num, ostream* os);
93 static void SwapWrite8LERange(
void const* p,
size_t num, ostream* os);
98 static void Swap2BE(
void* p);
99 static void Swap4BE(
void* p);
100 static void Swap8BE(
void* p);
105 static void Swap2BERange(
void* p,
size_t num);
106 static void Swap4BERange(
void* p,
size_t num);
107 static void Swap8BERange(
void* p,
size_t num);
114 static bool SwapWrite2BERange(
void const* p,
size_t num, FILE* f);
115 static bool SwapWrite4BERange(
void const* p,
size_t num, FILE* f);
116 static bool SwapWrite8BERange(
void const* p,
size_t num, FILE* f);
117 static void SwapWrite2BERange(
void const* p,
size_t num, ostream* os);
118 static void SwapWrite4BERange(
void const* p,
size_t num, ostream* os);
119 static void SwapWrite8BERange(
void const* p,
size_t num, ostream* os);
124 static void SwapVoidRange(
void *buffer,
size_t numWords,
size_t wordSize);
abstract base class for most VTK objects
#define VTKCOMMONCORE_EXPORT
#define VTK_BYTE_SWAP_DECL(T)
perform machine dependent byte swapping