30 #include "vtkCommonCoreModule.h" 45 #define VTK_BYTE_SWAP_DECL(T) \ 46 static void SwapLE(T* p); \ 47 static void SwapBE(T* p); \ 48 static void SwapLERange(T* p, size_t num); \ 49 static void SwapBERange(T* p, size_t num); \ 50 static bool SwapLERangeWrite(const T* p, size_t num, FILE* file); \ 51 static bool SwapBERangeWrite(const T* p, size_t num, FILE* file); \ 52 static void SwapLERangeWrite(const T* p, size_t num, ostream* os); \ 53 static void SwapBERangeWrite(const T* p, size_t num, ostream* os) 67 #undef VTK_BYTE_SWAP_DECL 74 static void Swap2LE(
void* p);
75 static void Swap4LE(
void* p);
76 static void Swap8LE(
void* p);
83 static void Swap2LERange(
void* p,
size_t num);
84 static void Swap4LERange(
void* p,
size_t num);
85 static void Swap8LERange(
void* p,
size_t num);
93 static bool SwapWrite2LERange(
void const* p,
size_t num, FILE* f);
94 static bool SwapWrite4LERange(
void const* p,
size_t num, FILE* f);
95 static bool SwapWrite8LERange(
void const* p,
size_t num, FILE* f);
96 static void SwapWrite2LERange(
void const* p,
size_t num, ostream* os);
97 static void SwapWrite4LERange(
void const* p,
size_t num, ostream* os);
98 static void SwapWrite8LERange(
void const* p,
size_t num, ostream* os);
105 static void Swap2BE(
void* p);
106 static void Swap4BE(
void* p);
107 static void Swap8BE(
void* p);
114 static void Swap2BERange(
void* p,
size_t num);
115 static void Swap4BERange(
void* p,
size_t num);
116 static void Swap8BERange(
void* p,
size_t num);
124 static bool SwapWrite2BERange(
void const* p,
size_t num, FILE* f);
125 static bool SwapWrite4BERange(
void const* p,
size_t num, FILE* f);
126 static bool SwapWrite8BERange(
void const* p,
size_t num, FILE* f);
127 static void SwapWrite2BERange(
void const* p,
size_t num, ostream* os);
128 static void SwapWrite4BERange(
void const* p,
size_t num, ostream* os);
129 static void SwapWrite8BERange(
void const* p,
size_t num, ostream* os);
136 static void SwapVoidRange(
void *buffer,
size_t numWords,
size_t wordSize);
abstract base class for most VTK objects
#define VTK_BYTE_SWAP_DECL(T)
Type-safe swap signatures to swap for storage in either Little Endian or Big Endian format...
perform machine dependent byte swapping
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...