#include <vtkByteSwap.h>
Inheritance diagram for vtkByteSwap:
vtkByteSwap is used by other classes to perform machine dependent byte swapping. Byte swapping is often used when reading or writing binary files.
Definition at line 35 of file vtkByteSwap.h.
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
Static Public Member Functions | |
vtkByteSwap * | New () |
int | IsTypeOf (const char *type) |
vtkByteSwap * | SafeDownCast (vtkObject *o) |
void | SwapVoidRange (void *buffer, int numWords, int wordSize) |
void | Swap2LE (short *s) |
void | Swap2LE (unsigned short *s) |
void | Swap4LE (char *c) |
void | Swap4LE (float *p) |
void | Swap4LE (int *i) |
void | Swap4LE (unsigned int *i) |
void | Swap4LE (long *i) |
void | Swap4LE (unsigned long *i) |
void | Swap8LE (char *c) |
void | Swap8LE (double *d) |
void | Swap2LERange (char *c, int num) |
void | Swap2LERange (short *i, int num) |
void | Swap4LERange (char *c, int num) |
void | Swap4LERange (unsigned char *c, int num) |
void | Swap4LERange (float *p, int num) |
void | Swap4LERange (int *i, int num) |
void | Swap4LERange (unsigned int *i, int num) |
void | Swap4LERange (long *i, int num) |
void | Swap4LERange (unsigned long *i, int num) |
void | Swap8LERange (char *c, int num) |
void | Swap8LERange (double *d, int num) |
void | Swap2BE (short *s) |
void | Swap2BE (unsigned short *s) |
void | Swap4BE (char *c) |
void | Swap4BE (float *p) |
void | Swap4BE (int *i) |
void | Swap4BE (unsigned int *i) |
void | Swap4BE (long *i) |
void | Swap4BE (unsigned long *i) |
void | Swap8BE (char *c) |
void | Swap8BE (double *d) |
void | Swap2BERange (char *c, int num) |
void | Swap2BERange (short *i, int num) |
void | Swap4BERange (char *c, int num) |
void | Swap4BERange (float *p, int num) |
void | Swap4BERange (int *i, int num) |
void | Swap4BERange (unsigned int *i, int num) |
void | Swap4BERange (long *i, int num) |
void | Swap4BERange (unsigned long *i, int num) |
void | Swap8BERange (char *c, int num) |
void | Swap8BERange (double *d, int num) |
void | SwapWrite2BERange (char *c, int num, FILE *fp) |
void | SwapWrite2BERange (short *i, int num, FILE *fp) |
void | SwapWrite4BERange (char *c, int num, FILE *fp) |
void | SwapWrite4BERange (float *p, int num, FILE *fp) |
void | SwapWrite4BERange (int *i, int num, FILE *fp) |
void | SwapWrite4BERange (unsigned int *i, int num, FILE *fp) |
void | SwapWrite4BERange (unsigned long *i, int num, FILE *fp) |
void | SwapWrite4BERange (long *i, int num, FILE *fp) |
void | SwapWrite8BERange (char *c, int num, FILE *fp) |
void | SwapWrite8BERange (double *d, int num, FILE *fp) |
void | SwapWrite2BERange (char *c, int num, ostream *fp) |
void | SwapWrite2BERange (short *i, int num, ostream *fp) |
void | SwapWrite4BERange (char *c, int num, ostream *fp) |
void | SwapWrite4BERange (float *p, int num, ostream *fp) |
void | SwapWrite4BERange (int *i, int num, ostream *fp) |
void | SwapWrite4BERange (unsigned int *i, int num, ostream *fp) |
void | SwapWrite4BERange (unsigned long *i, int num, ostream *fp) |
void | SwapWrite4BERange (long *i, int num, ostream *fp) |
void | SwapWrite8BERange (char *c, int num, ostream *fp) |
void | SwapWrite8BERange (double *d, int num, ostream *fp) |
Protected Member Functions | |
vtkByteSwap () | |
~vtkByteSwap () |
|
Reimplemented from vtkObject. Definition at line 39 of file vtkByteSwap.h. |
|
Definition at line 241 of file vtkByteSwap.h. |
|
Definition at line 242 of file vtkByteSwap.h. |
|
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. Reimplemented from vtkObject.
|
|
Reimplemented from vtkObject.
|
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkObject.
|
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkObject.
|
|
Reimplemented from vtkObject.
|
|
Swap 2 byte word to be LE. |
|
Swap 2 byte word to be LE. |
|
Swap four byte word to be LE. Referenced by Swap4LE(). |
|
Swap four byte word to be LE. Definition at line 50 of file vtkByteSwap.h. References Swap4LE(). |
|
Swap four byte word to be LE. Definition at line 51 of file vtkByteSwap.h. References Swap4LE(). |
|
Swap four byte word to be LE. Definition at line 52 of file vtkByteSwap.h. References Swap4LE(). |
|
Swap four byte word to be LE. Definition at line 53 of file vtkByteSwap.h. References Swap4LE(). |
|
Swap four byte word to be LE. Definition at line 54 of file vtkByteSwap.h. References Swap4LE(). |
|
Swap eight byte word to be LE. Currently implemented for doubles, but will be necessary for 64bit integers? 16bit chars? Referenced by Swap8LE(). |
|
Swap eight byte word to be LE. Currently implemented for doubles, but will be necessary for 64bit integers? 16bit chars? Definition at line 61 of file vtkByteSwap.h. References Swap8LE(). |
|
Swap bunch of bytes to LE. Num is the number of two byte words to swap. Referenced by Swap2LERange(). |
|
Swap bunch of bytes to LE. Num is the number of two byte words to swap. Definition at line 68 of file vtkByteSwap.h. References Swap2LERange(). |
|
Swap bunch of bytes to be LE. Num is the number of four byte words to swap. Referenced by Swap4LERange(). |
|
Swap bunch of bytes to be LE. Num is the number of four byte words to swap. Definition at line 76 of file vtkByteSwap.h. References Swap4LERange(). |
|
Swap bunch of bytes to be LE. Num is the number of four byte words to swap. Definition at line 78 of file vtkByteSwap.h. References Swap4LERange(). |
|
Swap bunch of bytes to be LE. Num is the number of four byte words to swap. Definition at line 80 of file vtkByteSwap.h. References Swap4LERange(). |
|
Swap bunch of bytes to be LE. Num is the number of four byte words to swap. Definition at line 82 of file vtkByteSwap.h. References Swap4LERange(). |
|
Swap bunch of bytes to be LE. Num is the number of four byte words to swap. Definition at line 84 of file vtkByteSwap.h. References Swap4LERange(). |
|
Swap bunch of bytes to be LE. Num is the number of four byte words to swap. Definition at line 86 of file vtkByteSwap.h. References Swap4LERange(). |
|
Swap bunch of bytes to be LE. Num is the number of eight byte words to swap. Currently implemented for doubles... Referenced by Swap8LERange(). |
|
Swap bunch of bytes to be LE. Num is the number of eight byte words to swap. Currently implemented for doubles... Definition at line 94 of file vtkByteSwap.h. References Swap8LERange(). |
|
Swap 2 byte word to BE. |
|
Swap 2 byte word to BE. |
|
For writing, swap four byte word to be BE. For reading, swap four byte word from BE to machine's internal representation. Referenced by Swap4BE(). |
|
For writing, swap four byte word to be BE. For reading, swap four byte word from BE to machine's internal representation. Definition at line 108 of file vtkByteSwap.h. References Swap4BE(). |
|
For writing, swap four byte word to be BE. For reading, swap four byte word from BE to machine's internal representation. Definition at line 109 of file vtkByteSwap.h. References Swap4BE(). |
|
For writing, swap four byte word to be BE. For reading, swap four byte word from BE to machine's internal representation. Definition at line 110 of file vtkByteSwap.h. References Swap4BE(). |
|
For writing, swap four byte word to be BE. For reading, swap four byte word from BE to machine's internal representation. Definition at line 111 of file vtkByteSwap.h. References Swap4BE(). |
|
For writing, swap four byte word to be BE. For reading, swap four byte word from BE to machine's internal representation. Definition at line 112 of file vtkByteSwap.h. References Swap4BE(). |
|
For writing, swap eight byte word to be BE. For reading, swap eight byte word from BE to machine's internal representation. Referenced by Swap8BE(). |
|
For writing, swap eight byte word to be BE. For reading, swap eight byte word from BE to machine's internal representation. Definition at line 119 of file vtkByteSwap.h. References Swap8BE(). |
|
Swap bunch of bytes to BE. Num is the number of two byte words to swap. Referenced by Swap2BERange(). |
|
Swap bunch of bytes to BE. Num is the number of two byte words to swap. Definition at line 126 of file vtkByteSwap.h. References Swap2BERange(). |
|
Swap bunch of bytes to be BE. Num is the number of four byte words to swap. Referenced by Swap4BERange(). |
|
Swap bunch of bytes to be BE. Num is the number of four byte words to swap. Definition at line 134 of file vtkByteSwap.h. References Swap4BERange(). |
|
Swap bunch of bytes to be BE. Num is the number of four byte words to swap. Definition at line 136 of file vtkByteSwap.h. References Swap4BERange(). |
|
Swap bunch of bytes to be BE. Num is the number of four byte words to swap. Definition at line 138 of file vtkByteSwap.h. References Swap4BERange(). |
|
Swap bunch of bytes to be BE. Num is the number of four byte words to swap. Definition at line 140 of file vtkByteSwap.h. References Swap4BERange(). |
|
Swap bunch of bytes to be BE. Num is the number of four byte words to swap. Definition at line 142 of file vtkByteSwap.h. References Swap4BERange(). |
|
Swap bunch of bytes to be BE. Num is the number of eight byte words to swap. Referenced by Swap8BERange(). |
|
Swap bunch of bytes to be BE. Num is the number of eight byte words to swap. Definition at line 155 of file vtkByteSwap.h. References Swap8BERange(). |
|
Swap bunch of bytes to BE. Num is the number of two byte words to swap. The results are written out to file to prevent having to keep the swapped copy in memory. Referenced by SwapWrite2BERange(). |
|
Swap bunch of bytes to BE. Num is the number of two byte words to swap. The results are written out to file to prevent having to keep the swapped copy in memory. Definition at line 164 of file vtkByteSwap.h. References SwapWrite2BERange(). |
|
Swap bunch of bytes to BE. Num is the number of four byte words to swap. The results are written out to file to prevent having to keep the swapped copy in memory. Referenced by SwapWrite4BERange(). |
|
Swap bunch of bytes to BE. Num is the number of four byte words to swap. The results are written out to file to prevent having to keep the swapped copy in memory. Definition at line 173 of file vtkByteSwap.h. References SwapWrite4BERange(). |
|
Swap bunch of bytes to BE. Num is the number of four byte words to swap. The results are written out to file to prevent having to keep the swapped copy in memory. Definition at line 175 of file vtkByteSwap.h. References SwapWrite4BERange(). |
|
Swap bunch of bytes to BE. Num is the number of four byte words to swap. The results are written out to file to prevent having to keep the swapped copy in memory. Definition at line 177 of file vtkByteSwap.h. References SwapWrite4BERange(). |
|
Swap bunch of bytes to BE. Num is the number of four byte words to swap. The results are written out to file to prevent having to keep the swapped copy in memory. Definition at line 179 of file vtkByteSwap.h. References SwapWrite4BERange(). |
|
Swap bunch of bytes to BE. Num is the number of four byte words to swap. The results are written out to file to prevent having to keep the swapped copy in memory. Definition at line 181 of file vtkByteSwap.h. References SwapWrite4BERange(). |
|
Swap bunch of bytes to BE. Num is the number of eight byte words to swap. The results are written out to file to prevent having to keep the swapped copy in memory. Implemented for doubles for now. Referenced by SwapWrite8BERange(). |
|
Swap bunch of bytes to BE. Num is the number of eight byte words to swap. The results are written out to file to prevent having to keep the swapped copy in memory. Implemented for doubles for now. Definition at line 193 of file vtkByteSwap.h. References SwapWrite8BERange(). |
|
Swap bunch of bytes to BE. Num is the number of two byte words to swap. The results are written out to stream to prevent having to keep the swapped copy in memory. |
|
Swap bunch of bytes to BE. Num is the number of two byte words to swap. The results are written out to stream to prevent having to keep the swapped copy in memory. Definition at line 202 of file vtkByteSwap.h. References SwapWrite2BERange(). |
|
Swap bunch of bytes to BE. Num is the number of four byte words to swap. The results are written out to stream to prevent having to keep the swapped copy in memory. |
|
Swap bunch of bytes to BE. Num is the number of four byte words to swap. The results are written out to stream to prevent having to keep the swapped copy in memory. Definition at line 211 of file vtkByteSwap.h. References SwapWrite4BERange(). |
|
Swap bunch of bytes to BE. Num is the number of four byte words to swap. The results are written out to stream to prevent having to keep the swapped copy in memory. Definition at line 213 of file vtkByteSwap.h. References SwapWrite4BERange(). |
|
Swap bunch of bytes to BE. Num is the number of four byte words to swap. The results are written out to stream to prevent having to keep the swapped copy in memory. Definition at line 215 of file vtkByteSwap.h. References SwapWrite4BERange(). |
|
Swap bunch of bytes to BE. Num is the number of four byte words to swap. The results are written out to stream to prevent having to keep the swapped copy in memory. Definition at line 217 of file vtkByteSwap.h. References SwapWrite4BERange(). |
|
Swap bunch of bytes to BE. Num is the number of four byte words to swap. The results are written out to stream to prevent having to keep the swapped copy in memory. Definition at line 219 of file vtkByteSwap.h. References SwapWrite4BERange(). |
|
Swap bunch of bytes to BE. Num is the number of eight byte words to swap. The results are written out to stream to prevent having to keep the swapped copy in memory. |
|
Swap bunch of bytes to BE. Num is the number of eight byte words to swap. The results are written out to stream to prevent having to keep the swapped copy in memory. Definition at line 231 of file vtkByteSwap.h. References SwapWrite8BERange(). |
|
Swaps the bytes of a buffer. Uses an arbitrary word size, but assumes the word size is divisible by two. |