DATRW++ library: seismic data I/O with multiple formats
|
Emagic_type datrw::util::file_magic_test | ( | std::istream & | is, |
const char *const | cmagic, | ||
const bool & | fortranmode = false |
||
) |
check magic number in file
Check for magic number in file.
,
is | input stream to read from |
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 |
The function may have the following return values
Definition at line 105 of file bytesex.cc.
References datrw::util::IOUnion< T >::bytes, magic(), magic_match, magic_nomatch, magic_swap, swap(), and datrw::util::IOUnion< T >::value.
Referenced by datrw::binary::ibinstream::ibinstream().