#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 31 of file vtkByteSwap.h.
| VTK_BYTE_SWAP_DECL (float) | |
| VTK_BYTE_SWAP_DECL (double) | |
| VTK_BYTE_SWAP_DECL (char) | |
| VTK_BYTE_SWAP_DECL (short) | |
| VTK_BYTE_SWAP_DECL (int) | |
| VTK_BYTE_SWAP_DECL (long) | |
| VTK_BYTE_SWAP_DECL (signed char) | |
| VTK_BYTE_SWAP_DECL (unsigned char) | |
| VTK_BYTE_SWAP_DECL (unsigned short) | |
| VTK_BYTE_SWAP_DECL (unsigned int) | |
| static vtkByteSwap * | SafeDownCast (vtkObject *o) |
| VTK_BYTE_SWAP_DECL (unsigned long) | |
| static void | Swap2LE (void *p) |
| static void | Swap4LE (void *p) |
| static void | Swap8LE (void *p) |
Public Types | |
| typedef vtkObject | Superclass |
Public Member Functions | |
| virtual const char * | GetClassName () |
| virtual int | IsA (const char *type) |
Static Public Member Functions | |
| static vtkByteSwap * | New () |
| static int | IsTypeOf (const char *type) |
| static void | SwapVoidRange (void *buffer, int numWords, int wordSize) |
| static void | Swap2LERange (void *p, int num) |
| static void | Swap4LERange (void *p, int num) |
| static void | Swap8LERange (void *p, int num) |
| static void | SwapWrite2LERange (const void *p, int num, FILE *f) |
| static void | SwapWrite4LERange (const void *p, int num, FILE *f) |
| static void | SwapWrite8LERange (const void *p, int num, FILE *f) |
| static void | SwapWrite2LERange (const void *p, int num, ostream *os) |
| static void | SwapWrite4LERange (const void *p, int num, ostream *os) |
| static void | SwapWrite8LERange (const void *p, int num, ostream *os) |
| static void | Swap2BE (void *p) |
| static void | Swap4BE (void *p) |
| static void | Swap8BE (void *p) |
| static void | Swap2BERange (void *p, int num) |
| static void | Swap4BERange (void *p, int num) |
| static void | Swap8BERange (void *p, int num) |
| static void | SwapWrite2BERange (const void *p, int num, FILE *f) |
| static void | SwapWrite4BERange (const void *p, int num, FILE *f) |
| static void | SwapWrite8BERange (const void *p, int num, FILE *f) |
| static void | SwapWrite2BERange (const void *p, int num, ostream *os) |
| static void | SwapWrite4BERange (const void *p, int num, ostream *os) |
| static void | SwapWrite8BERange (const void *p, int num, ostream *os) |
Protected Member Functions | |
| vtkByteSwap () | |
| ~vtkByteSwap () | |
|
|
Reimplemented from vtkObject. Definition at line 35 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, 4, or 8 bytes for storage as Little Endian. |
|
|
|
|
|
|
|
||||||||||||
|
Swap a block of 2-, 4-, or 8-byte segments for storage as Little Endian. |
|
||||||||||||
|
Swap a block of 2-, 4-, or 8-byte segments for storage as Little Endian. |
|
||||||||||||
|
Swap a block of 2-, 4-, or 8-byte segments for storage as Little Endian. |
|
||||||||||||||||
|
Swap a block of 2-, 4-, or 8-byte segments for storage as Little Endian. The results are written directly to a file to avoid temporary storage. |
|
||||||||||||||||
|
Swap a block of 2-, 4-, or 8-byte segments for storage as Little Endian. The results are written directly to a file to avoid temporary storage. |
|
||||||||||||||||
|
Swap a block of 2-, 4-, or 8-byte segments for storage as Little Endian. The results are written directly to a file to avoid temporary storage. |
|
||||||||||||||||
|
Swap a block of 2-, 4-, or 8-byte segments for storage as Little Endian. The results are written directly to a file to avoid temporary storage. |
|
||||||||||||||||
|
Swap a block of 2-, 4-, or 8-byte segments for storage as Little Endian. The results are written directly to a file to avoid temporary storage. |
|
||||||||||||||||
|
Swap a block of 2-, 4-, or 8-byte segments for storage as Little Endian. The results are written directly to a file to avoid temporary storage. |
|
|
Swap 2, 4, or 8 bytes for storage as Big Endian. |
|
|
Swap 2, 4, or 8 bytes for storage as Big Endian. |
|
|
Swap 2, 4, or 8 bytes for storage as Big Endian. |
|
||||||||||||
|
Swap a block of 2-, 4-, or 8-byte segments for storage as Big Endian. |
|
||||||||||||
|
Swap a block of 2-, 4-, or 8-byte segments for storage as Big Endian. |
|
||||||||||||
|
Swap a block of 2-, 4-, or 8-byte segments for storage as Big Endian. |
|
||||||||||||||||
|
Swap a block of 2-, 4-, or 8-byte segments for storage as Big Endian. The results are written directly to a file to avoid temporary storage. |
|
||||||||||||||||
|
Swap a block of 2-, 4-, or 8-byte segments for storage as Big Endian. The results are written directly to a file to avoid temporary storage. |
|
||||||||||||||||
|
Swap a block of 2-, 4-, or 8-byte segments for storage as Big Endian. The results are written directly to a file to avoid temporary storage. |
|
||||||||||||||||
|
Swap a block of 2-, 4-, or 8-byte segments for storage as Big Endian. The results are written directly to a file to avoid temporary storage. |
|
||||||||||||||||
|
Swap a block of 2-, 4-, or 8-byte segments for storage as Big Endian. The results are written directly to a file to avoid temporary storage. |
|
||||||||||||||||
|
Swap a block of 2-, 4-, or 8-byte segments for storage as Big Endian. The results are written directly to a file to avoid temporary storage. |
|
||||||||||||||||
|
Swaps the bytes of a buffer. Uses an arbitrary word size, but assumes the word size is divisible by two. |
1.4.3-20050530