25 this->seekg(spos, ios::beg);
28 this->seekg(spos, ios::cur);
31 this->seekg(spos, ios::end);
41 return streampos(this->tellg());
48 if (iread == EOF)
err |= Eof;
52 throw runtime_error(
"Reading from binary file failed");
69 n =
static_cast<std::int64_t
>(bif.
readInt(4));
bifstream & operator>>(bifstream &bif, double &n)
This file contains the class declaration of bifstream.
Binary output file stream class.
void seek(long spos, Offset offs) final
bifstream::Byte getByte() final
enum { Set, Add, End } Offset
Int readInt(unsigned int size)
Float readFloat(FType ft)