ClanSoft logo
ClanSoft logo

    CL_Endian

Endianess management class.

Description

The CL_Endian class is used to convert between different endianess. There are also a set of defines to the lazy developer:

 #define SWAP_IF_BIG(i)
 #define SWAP_IF_LITTLE(i)
 #define SWAP_IF_BIG_ALOT(i, times)
 #define SWAP_IF_LITTLE_ALOT(i, times)
 #define IS_SYSTEM_64BIT()
 
Each of these defines call CL_Endian::is_system_big() and CL_Endian::swap. For the exact definition of the defines, have a look in ClanLib/Layer1/IOData/API/endian.h

Class members

static void swap(
        void *data,
        int type_size)
static void swap( void *data, int type_size, int total_times)
static bool is_system_big()
static bool is_system_64bit()

See Also

None


Back to index



This page was built using the Perceps documentation system.