TF++, Miscellaneous classes and modules in C++:
Interface provided through bytesex.h

Interface provided through bytesex.h,. More...

Collaboration diagram for Interface provided through bytesex.h:

Files

file  bytesex.h
 handle different data bytesex (prototypes)
 

Namespaces

 tfxx::ioswap
 All facilities for checking bytesex and swapping input binary data. ,.
 

Functions

template<class T >
tfxx::ioswap::swap (const T &value)
 How to swap any generic type. More...
 
template<class T >
IOUnion< T > tfxx::ioswap::swap (const IOUnion< T > &value)
 Specialization in case we use use an IOUnion. i.e. overloading the function. More...
 
int tfxx::ioswap::magic (const char *const cmagic)
 Create a magic number from a character string. ,If $x_{i}=(\vec{x})_{i}$ represents the input character sequence cmagic and $N=4$ is the value of sizeof(int), then the return value will be

\[ \textrm{magic}(\vec{x}) =\sum\limits_{i=0}^{N-1} x_{i}\; 2^{8\; (N-1-i)} =x_{3}+256\; (x_{2}+256\; (x_{1}+256\; x_{0})). \]

. More...

 
Ecpu_type tfxx::ioswap::cpu ()
 Check CPU model. ,. More...
 
Emagic_type tfxx::ioswap::file_magic_test (std::istream &is, const char *const cmagic, const bool &fortranmode=false)
 Check for magic number in file. More...
 
void tfxx::ioswap::file_magic_write (std::ostream &os, const char *const cmagic, const bool &fortranmode=false)
 Write magic number to file. ,. More...
 

Detailed Description

Interface provided through bytesex.h

,.