
Go to the source code of this file.
Namespaces | |
| namespace | PIRL |
The Planetary Image Research Laboratory. | |
Defines | |
| #define | MSB_value MSB_native |
| Backwards compatibility with obsolete name. | |
| #define | LSB_value LSB_native |
| Backwards compatibility with obsolete name. | |
Functions | |
| bool | PIRL::host_is_high_endian () |
| Tests if the host system is high-endian. | |
| bool | PIRL::high_endian_host () |
| Tests if the host system is high-endian. | |
| bool | PIRL::big_endian_host () |
| Tests if the host system is big-endian. | |
| bool | PIRL::low_endian_host () |
| Tests if the host system is low-endian. | |
| bool | PIRL::little_endian_host () |
| Tests if the host system is little-endian. | |
| void | PIRL::reorder_bytes (unsigned char *data, const unsigned long amount) |
| Reorders data bytes. | |
| void | PIRL::reorder_bytes (unsigned char *data, const unsigned long groups, const unsigned int size) |
| Reorders data bytes in groups. | |
| void | PIRL::swap_bytes (unsigned char *data, const unsigned int groups, const unsigned int size) |
| Swap groups of data bytes. | |
| template<typename T > | |
| T & | PIRL::MSB_native (T &value) |
| A MSB (high-endian) data value is coerced to/from native byte order. | |
| template<typename T > | |
| T & | PIRL::LSB_native (T &value) |
| A LSB (low-endian) data value is coerced to/from native byte order. | |
| #define MSB_value MSB_native |
Backwards compatibility with obsolete name.
| #define LSB_value LSB_native |
Backwards compatibility with obsolete name.
1.7.2