Main Page | Modules | File List | Globals | Related Pages

Byte Order Conversion Macros


Detailed Description

The actual definitions of these macros depend on the underlying platform.

They will either map to a no-op, or they will map to the appropriate byte swapping function.


Defines

#define POSH_LittleU16(x)   (x)
 Convert native to 16-bit unsigned little-endian.

#define POSH_LittleU32(x)   (x)
 Convert native to 32-bit unsigned little-endian.

#define POSH_LittleI16(x)   (x)
 Convert native to 16-bit signed little-endian.

#define POSH_LittleI32(x)   (x)
 Convert native to 32-bit signed little-endian.

#define POSH_BigU16(x)   POSH_SwapU16(x)
 Convert native to 16-bit unsigned big-endian.

#define POSH_BigU32(x)   POSH_SwapU32(x)
 Convert native to 32-bit unsigned big-endian.

#define POSH_BigI16(x)   POSH_SwapI16(x)
 Convert native to 16-bit signed big-endian.

#define POSH_BigI32(x)   POSH_SwapI32(x)
 Convert native to 32-bit signed big-endian.


Generated on Tue Jan 31 18:27:36 2006 for POSH by doxygen 1.3.7