DATRW++ library: seismic data I/O with multiple formats

◆ swap() [2/2]

template<class T >
IOUnion<T> datrw::util::swap ( const IOUnion< T > &  value)

Specialization in case we use use an IOUnion. i.e. overloading the function.

Definition at line 130 of file bytesex.h.

References datrw::util::IOUnion< T >::bytes.

131  {
132  IOUnion<T> result;
133  for (unsigned int i=0; i<sizeof(T); i++)
134  { result.bytes[i]=value.bytes[sizeof(T)-i-1]; }
135  return(result);
136  }