SCIRun
5.0
|
Detect host endianness and provide tools to swap bytes if necessary. More...
Go to the source code of this file.
Namespaces | |
SCIRun | |
STL datatypes needed. | |
Macros | |
#define | SWAP_2(u2) |
#define | SWAP_4(u4) |
#define | SWAP_8(u8) |
Functions | |
void | swapbytes (bool &) |
void | swapbytes (int8_t &) |
void | swapbytes (uint8_t &) |
void | swapbytes (int16_t &i) |
void | swapbytes (uint16_t &i) |
void | swapbytes (int32_t &i) |
void | swapbytes (uint32_t &i) |
void | swapbytes (int64_t &i) |
void | swapbytes (uint64_t &i) |
void | swapbytes (float &i) |
void | swapbytes (double &i) |
bool | isBigEndian () |
bool | isLittleEndian () |
std::string | endianness () |
Detect host endianness and provide tools to swap bytes if necessary.
#define SWAP_2 | ( | u2 | ) |
#define SWAP_4 | ( | u4 | ) |
#define SWAP_8 | ( | u8 | ) |