Documentation for vtkByteSwap

vtkByteSwap - perform machine dependent byte swapping

Super Class: vtkObject

Description:

vtkByteSwap is used by other classes to perform machine dependent byte swapping. Byte swapping is often used when reading or writing binary files.

 

Methods:

static vtkByteSwap *New ()
const char *GetClassName ()
static void Swap2LE (short *)
static void Swap4LE (char *)
static void Swap4LE (float *)
static void Swap4LE (int *)
static void Swap4LE (unsigned long *)
static void Swap4LE (long *)
static void Swap4LERange (char * ,int )
static void Swap4LERange (unsigned char * ,int )
static void Swap4LERange (float * ,int )
static void Swap4LERange (int * ,int )
static void Swap4LERange (unsigned long * ,int )
static void Swap4BE (char *)
static void Swap4BE (float *)
static void Swap4BE (int *)
static void Swap4BE (unsigned long *)
static void Swap4BERange (char * ,int )
static void Swap4BERange (float * ,int )
static void Swap4BERange (int * ,int )
static void Swap4BERange (unsigned long * ,int )
static void SwapWrite4BERange (char * ,int ,unknown *)
static void SwapWrite4BERange (float * ,int ,unknown *)
static void SwapWrite4BERange (int * ,int ,unknown *)
static void SwapWrite4BERange (unsigned long * ,int ,unknown *)
static void Swap2BE (short *)
static void Swap2BERange (char * ,int )
static void Swap2BERange (short * ,int )
static void Swap2LERange (char * ,int )
static void Swap2LERange (short * ,int )
static void SwapWrite2BERange (char * ,int ,unknown *)
static void SwapWrite2BERange (short * ,int ,unknown *)
static void SwapVoidRange (void * ,int ,int )

 

Detailed Method Descriptions:

Swap 2 byte word to be LE.

static void Swap2LE (short *)

Swap four byte word to be LE.

static void Swap4LE (char *)
static void Swap4LE (float *)
static void Swap4LE (int *)
static void Swap4LE (unsigned long *)
static void Swap4LE (long *)

Swap bunch of bytes to be LE. Num is the number of four byte words to swap.

static void Swap4LERange (char * ,int )
static void Swap4LERange (unsigned char * ,int )
static void Swap4LERange (float * ,int )
static void Swap4LERange (int * ,int )
static void Swap4LERange (unsigned long * ,int )

Swap four byte word to be BE.

static void Swap4BE (char *)
static void Swap4BE (float *)
static void Swap4BE (int *)
static void Swap4BE (unsigned long *)

Swap bunch of bytes to be BE. Num is the number of four byte words to swap.

static void Swap4BERange (char * ,int )
static void Swap4BERange (float * ,int )
static void Swap4BERange (int * ,int )
static void Swap4BERange (unsigned long * ,int )

Swap bunch of bytes to BE. Num is the number of four byte words to swap. The results are written out to prevent having to keep the swapped copy in memory.

static void SwapWrite4BERange (char * ,int ,unknown *)
static void SwapWrite4BERange (float * ,int ,unknown *)
static void SwapWrite4BERange (int * ,int ,unknown *)
static void SwapWrite4BERange (unsigned long * ,int ,unknown *)

Swap 2 byte word to BE.

static void Swap2BE (short *)

Swap bunch of bytes to BE. Num is the number of two byte words to swap.

static void Swap2BERange (char * ,int )
static void Swap2BERange (short * ,int )

Swap bunch of bytes to LE. Num is the number of two byte words to swap.

static void Swap2LERange (char * ,int )
static void Swap2LERange (short * ,int )

Swap bunch of bytes to BE. Num is the number of two byte words to swap. The results are written out to prevent having to keep the swapped copy in memory.

static void SwapWrite2BERange (char * ,int ,unknown *)
static void SwapWrite2BERange (short * ,int ,unknown *)

Swaps the bytes of a buffer. Uses an arbitrary word size, but assumes the word size is divisible by two.

static void SwapVoidRange (void * ,int ,int )