Endianess management class. More...
#include <cl_endian.h>
Static Public Member Functions | |
static bool | is_system_64bit () |
Returns true if 64 bit system. More... | |
static bool | is_system_big () |
Returns true if big endian system. More... | |
static void | swap (void *data, int type_size, int total_times=1) |
Swaps larger amounts of data between little and big endian. More... | |
static void | swap_if_big (void *data, int type_size, int total_times=1) |
static void | swap_if_little (void *data, int type_size, int total_times=1) |
Endianess management class.
|
static |
Returns true if 64 bit system.
|
static |
Returns true if big endian system.
Referenced by swap_if_big(), and swap_if_little().
|
static |
Swaps larger amounts of data between little and big endian.
data | Data to be swapped. |
type_size | Size of datatype to be swapped. (Must be an even number) |
total_times | Number of 'type_size' size data chunks to be swapped. |
Referenced by swap_if_big(), and swap_if_little().
|
inlinestatic |
References is_system_big(), and swap().
|
inlinestatic |
References is_system_big(), and swap().