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)
63 #if defined(VTK_TYPE_USE_LONG_LONG)
67 #if defined(VTK_TYPE_USE___INT64)
71 #undef VTK_BYTE_SWAP_DECL
77 static void Swap2LE(
void* p);
78 static void Swap4LE(
void* p);
79 static void Swap8LE(
void* p);
85 static void Swap2LERange(
void* p,
size_t num);
86 static void Swap4LERange(
void* p,
size_t num);
87 static void Swap8LERange(
void* p,
size_t num);
94 static bool SwapWrite2LERange(
void const* p,
size_t num, FILE* f);
95 static bool SwapWrite4LERange(
void const* p,
size_t num, FILE* f);
96 static bool SwapWrite8LERange(
void const* p,
size_t num, FILE* f);
97 static void SwapWrite2LERange(
void const* p,
size_t num, ostream* os);
98 static void SwapWrite4LERange(
void const* p,
size_t num, ostream* os);
99 static void SwapWrite8LERange(
void const* p,
size_t num, ostream* os);
104 static void Swap2BE(
void* p);
105 static void Swap4BE(
void* p);
106 static void Swap8BE(
void* p);
111 static void Swap2BERange(
void* p,
size_t num);
112 static void Swap4BERange(
void* p,
size_t num);
113 static void Swap8BERange(
void* p,
size_t num);
120 static bool SwapWrite2BERange(
void const* p,
size_t num, FILE* f);
121 static bool SwapWrite4BERange(
void const* p,
size_t num, FILE* f);
122 static bool SwapWrite8BERange(
void const* p,
size_t num, FILE* f);
123 static void SwapWrite2BERange(
void const* p,
size_t num, ostream* os);
124 static void SwapWrite4BERange(
void const* p,
size_t num, ostream* os);
125 static void SwapWrite8BERange(
void const* p,
size_t num, ostream* os);
130 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