TF++, Miscellaneous classes and modules in C++:
|
void tfxx::ioswap::file_magic_write | ( | std::ostream & | os, |
const char *const | cmagic, | ||
const bool & | fortranmode = false |
||
) |
Write magic number to file. ,.
write magic number to file
os | output stream to write to |
cmagic | 4-byte character sequence representing magic number (most restrictive: pass a const pointer to a const char) is pointer to character array of size sizeof(int) |
fortranmode | use Fortran binary I/O if true |
Definition at line 135 of file ioswap.cc.
References tfxx::ioswap::IOUnion< T >::bytes, magic(), and tfxx::ioswap::IOUnion< T >::value.
Referenced by write_data(), and tfxx::hacks::write_grepg_c().