28#ifndef __TERRALIB_COMMON_INTERNAL_BYTESWAPUTILS_H 
   29#define __TERRALIB_COMMON_INTERNAL_BYTESWAPUTILS_H 
   38#include <boost/cstdint.hpp> 
   55      memcpy(vIn, &v, 
sizeof(T));
 
   60      memcpy(&v, vOut, 
sizeof(T));
 
   86      memcpy(vIn, &v, 
sizeof(T));
 
   93      memcpy(&v, vOut, 
sizeof(T));
 
  121      char* vIn = 
new char[
sizeof(T)];
 
  122      char* vOut = 
new char[
sizeof(T)];
 
  124      memcpy(vIn, &v, 
sizeof(T));
 
  126      for(
unsigned int i = 0; i <  
sizeof(T); ++i)
 
  127        vOut[i] = vIn[
sizeof(T) - i - 1];
 
  129      memcpy(&v, vOut, 
sizeof(T));
 
  203    template<> 
inline void SwapBytes(
double& v)
 
  215        unsigned int m_uintWord[2];  
 
  225      vAux2.m_uintWord[1] = vAux1.m_uintWord[0];
 
  226      vAux2.m_uintWord[0] = vAux1.m_uintWord[1];
 
void Swap4Bytes(T &v)
It swaps four bytes in local.
 
void SwapBytes(T &v)
It swaps the bytes in local.
 
void Swap8Bytes(char *v)
It swaps an array of eight bytes in local.
 
void Swap2Bytes(T &v)
It swaps two bytes in local.
 
Proxy configuration file for TerraView (see terraview_config.h).
 
It swaps eight bytes in local.