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

◆ read() [4/15]

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

Definition at line 90 of file ibinstream.cc.

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

91  {
92  DATRW_assert(Mis.read(reinterpret_cast<char *>(&v),
93  sizeof(unsigned int)),
94  "ERROR (ibinstream::read): reading unsigned int value");
95  if (Mswap) { v=::datrw::util::swap(v); }
96  } // void ibinstream::read(unsigned 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: