Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CP_ByteSwappers.h File Reference


Functions

SInt16 BYTE_SWAP_WORD (register SInt16 inShort)
UInt16 BYTE_SWAP_UWORD (register UInt16 inUShort)
SInt32 BYTE_SWAP_LONG (register SInt32 inLong)
UInt32 BYTE_SWAP_ULONG (register UInt32 inULong)
SInt16 CP_BYTE_SWAP (SInt16 inShort)
UInt16 CP_BYTE_SWAP (UInt16 inUShort)
SInt32 CP_BYTE_SWAP (SInt32 inLong)
UInt32 CP_BYTE_SWAP (UInt32 inUInt32)
void CP_BYTE_SWAP (float inFloat)

Function Documentation

SInt16 BYTE_SWAP_WORD register SInt16  inShort  ) 
 

Swaps the bytes in the passed in SInt16 and returns the result.

Parameters:
inShort The SInt16 to be byte swapped.
Exceptions:
none 
Returns:
SInt16 The SInt16 with its bytes swapped.

UInt16 BYTE_SWAP_UWORD register UInt16  inUShort  ) 
 

Swaps the bytes in the passed in UInt16 and returns the result.

Parameters:
inUShort The UInt16 to be byte swapped.
Exceptions:
none 
Returns:
UInt16 The UInt16 with its bytes swapped.

SInt32 BYTE_SWAP_LONG register SInt32  inLong  ) 
 

Swaps the bytes in the passed in SInt32 and returns the result.

Parameters:
inLong The SInt32 to be byte swapped.
Exceptions:
none 
Returns:
SInt32 The SInt32 with its bytes swapped.

UInt32 BYTE_SWAP_ULONG register UInt32  inULong  ) 
 

Swaps the bytes in the passed in UInt32 and returns the result.

Parameters:
inULong The UInt32 to be byte swapped.
Exceptions:
none 
Returns:
UInt32 The UInt32 with its bytes swapped.

SInt16 CP_BYTE_SWAP SInt16  inShort  ) 
 

Swaps the bytes in the passed in SInt16 and returns the result. This just calls BYTE_SWAP_WORD to do the actual conversion.

Parameters:
inShort The SInt16 to be byte swapped.
Exceptions:
none 
Returns:
SInt16 The SInt16 with its bytes swapped.

UInt16 CP_BYTE_SWAP UInt16  inUShort  ) 
 

Swaps the bytes in the passed in UInt16 and returns the result. This just calls BYTE_SWAP_UWORD to do the actual conversion.

Parameters:
inUShort The UInt16 to be byte swapped.
Exceptions:
none 
Returns:
UInt16 The UInt16 with its bytes swapped.

SInt32 CP_BYTE_SWAP SInt32  inLong  ) 
 

Swaps the bytes in the passed in SInt32 and returns the result. This just calls BYTE_SWAP_UWORD to do the actual conversion.

Parameters:
inLong The SInt32 to be byte swapped.
Exceptions:
none 
Returns:
SInt32 The SInt32 with its bytes swapped.

UInt32 CP_BYTE_SWAP UInt32  inUInt32  ) 
 

Swaps the bytes in the passed in UInt32 and returns the result. This just calls BYTE_SWAP_UWORD to do the actual conversion.

Parameters:
inULong The UInt32 to be byte swapped.
Exceptions:
none 
Returns:
UInt32 The UInt32 with its bytes swapped.

void CP_BYTE_SWAP float  inFloat  ) 
 

Swaps the bytes in the passed in float

Parameters:
inFloat The float to be byte swapped.
Exceptions:
none 
Returns:
void


Generated on Sat Sep 17 20:01:13 2005 for CPLAT by  doxygen 1.4.0