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

◆ read() [6/15]

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

Definition at line 109 of file ibinstream.cc.

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

110  {
111  DATRW_assert(Mis.read(reinterpret_cast<char *>(&v), sizeof(float)),
112  "ERROR (ibinstream::read): reading float value");
113  if (Mswap) { v=::datrw::util::swap(v); }
114  } // void ibinstream::read(float& 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: