42 #ifndef TF_BYTESEX_H_VERSION 44 #define TF_BYTESEX_H_VERSION \ 156 for (
unsigned int i=0; i<
sizeof(T); i++)
157 { result.
bytes[i]=value.
bytes[
sizeof(T)-i-1]; }
184 int magic(
const char*
const cmagic);
211 const bool& fortranmode=
false);
223 const bool& fortranmode=
false);
229 #endif // TF_BYTESEX_H_VERSION (includeguard) Ecpu_type
Define different CPU type that are recognized.
int magic(const char *const cmagic)
Create a magic number from a character string. ,If represents the input character sequence cmagic an...
Emagic_type file_magic_test(std::istream &is, const char *const cmagic, const bool &fortranmode=false)
Check for magic number in file.
T swap(const T &value)
How to swap any generic type.
The bytesex of the file matches this machine.
The bytesex of the file must be swapped to match this machine.
Ecpu_type cpu()
Check CPU model. ,.
Emagic_type
Define bytesex indicator for magic number test.
The magic number does match the file.
void file_magic_write(std::ostream &os, const char *const cmagic, const bool &fortranmode=false)
Write magic number to file. ,.
Namespace containing all code of library libtfxx.