DATRW++ library: seismic data I/O with multiple formats

◆ read() [3/15]

void datrw::binary::ibinstream::read ( int &  v)

Definition at line 81 of file ibinstream.cc.

References DATRW_assert, Mis, Mswap, and datrw::util::swap().

82  {
83  DATRW_assert(Mis.read(reinterpret_cast<char *>(&v), sizeof(int)),
84  "ERROR (ibinstream::read): reading integer value");
85  if (Mswap) { v=::datrw::util::swap(v); }
86  } // void ibinstream::read(int& v)
#define DATRW_assert(C, M)
Check an assertion and report by throwing an exception.
Definition: error.h:92
std::istream & Mis
Definition: ibinstream.h:80
T swap(const T &value)
How to swap any generic type.
Definition: bytesex.h:118
Here is the call graph for this function: