PIRL  PIRL++

Namespaces | Functions

endian.cc File Reference

Namespaces

namespace  PIRL
 

The Planetary Image Research Laboratory.


Functions

bool PIRL::host_is_high_endian ()
 Tests if the host system is high-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.