DATRW++ library: seismic data I/O with multiple formats
I/O byte swapping facility.

Provides function to check bytesex and swap input bytes. More...

Classes

union  datrw::util::IOUnion< T >
 

Enumerations

enum  datrw::util::Ecpu_type { datrw::util::cpu_Intel = 1, datrw::util::cpu_Motorola = 2, datrw::util::cpu_unknown = 3 }
 Define different CPU type that are recognized. More...
 
enum  datrw::util::Emagic_type { datrw::util::magic_match = 1, datrw::util::magic_swap = 2, datrw::util::magic_nomatch = 3 }
 Define bytesex indicator for magic number test. More...
 

Detailed Description

Provides function to check bytesex and swap input bytes.

When working in a multi-CPU-model environment, data written on one host (with Intel CPU e.g.) can not easily be read on a different host (with Motorola CPU e.g.) when using binary data. In this group we provide facilities to check bytesex of datafiles and perform byte-swapping if necessary.

Tests on this module were performed within tests of the group_fortranio.

See also
example_fortraniotest
group_fortranio
bytesex_h

The components are collected in namespace datrw::util.