src/ds++/Endian.cc
bool is_big_endian() {
  union {
    uint32_t i;
    std::array<char, 4> c;
  } data = {0x01020304};

  return data.c[0] == 1;
}
//------------------------------------------------------------------------------------------------//
/*!
 * \brief Does this platform use big or little endianness
 * \return true if platform uses big endian format
 */
\brief Does this platform use big or little endianness
\return true if platform uses big endian format
\ brief Does this platform use big or little endianness \ return true if platform uses big endian format
bool is_big_endian() {
  union {
    uint32_t i;
    std::array<char, 4> c;
  } data = {0x01020304};
  return data.c[0] == 1;
}
bool is_big_endian ( ) { union { uint32_t i ; std :: array < char , 4 > c ; } data = { 0x01020304 } ; return data . c [ 0 ] == 1 ; }
\brief Does this platform use big or little endianness
 \return true if platform uses big endian format
\ brief Does this platform use big or little endianness \ return true if platform uses big endian format