DATRW++ library: seismic data I/O with multiple formats
|
void datrw::util::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 128 of file bytesex.cc.
References datrw::util::IOUnion< T >::bytes, magic(), and datrw::util::IOUnion< T >::value.
Referenced by datrw::binary::obinstream::obinstream().