DSL
Functions
Byte Swapping

Functions

DSL_API uint16 DSL_CC ByteSwap16 (uint16 X)
 Byte swap a 16-bit unsigned integer.
 
DSL_API uint32 DSL_CC ByteSwap32 (uint32 X)
 Byte swap a 32-bit unsigned integer.
 
DSL_API uint64 DSL_CC ByteSwap64 (uint64 val)
 Byte swap a 64-bit unsigned integer.
 
DSL_API uint16 DSL_CC Get_ULE16 (uint16 x)
 Convert from the native endianness to Little Endian.
 
DSL_API int16 DSL_CC Get_SLE16 (int16 x)
 Convert from the native endianness to Little Endian.
 
DSL_API uint32 DSL_CC Get_ULE32 (uint32 x)
 Convert from the native endianness to Little Endian.
 
DSL_API int32 DSL_CC Get_SLE32 (int32 x)
 Convert from the native endianness to Little Endian.
 
DSL_API uint64 DSL_CC Get_ULE64 (uint64 x)
 Convert from the native endianness to Little Endian.
 
DSL_API int64 DSL_CC Get_SLE64 (int64 x)
 Convert from the native endianness to Little Endian.
 
DSL_API uint16 DSL_CC Get_UBE16 (uint16 x)
 Convert from the native endianness to Big Endian.
 
DSL_API int16 DSL_CC Get_SBE16 (int16 x)
 Convert from the native endianness to Big Endian.
 
DSL_API uint32 DSL_CC Get_UBE32 (uint32 x)
 Convert from the native endianness to Big Endian.
 
DSL_API int32 DSL_CC Get_SBE32 (int32 x)
 Convert from the native endianness to Big Endian.
 
DSL_API uint64 DSL_CC Get_UBE64 (uint64 x)
 Convert from the native endianness to Big Endian.
 
DSL_API int64 DSL_CC Get_SBE64 (int64 x)
 Convert from the native endianness to Big Endian.
 

Detailed Description

We also define LITTLE_ENDIAN or BIG_ENDIAN for you as well.