5#include <Common/assertion.h>
24 void read(T* out_buffer, std::size_t numElements = 1);
28 std::ifstream m_inputStream;
34 m_filePath(filePath), m_inputStream()
44 m_inputStream.close();
52 PH_ASSERT(out_buffer && numElements > 0 && m_inputStream.good());
54 m_inputStream.read(
reinterpret_cast<char*
>(out_buffer),
sizeof(T) * numElements);
Definition BinaryFileReader.h:14
virtual ~BinaryFileReader()
Definition BinaryFileReader.h:37
void read(T *out_buffer, std::size_t numElements=1)
Definition BinaryFileReader.h:48
BinaryFileReader(const Path &filePath)
Definition BinaryFileReader.h:33
bool open()
Definition BinaryFileReader.cpp:10
void close()
Definition BinaryFileReader.h:42
General path representation. Does not check whether the target actually exists (e....
Definition Path.h:21
The root for all renderer implementations.
Definition EEngineProject.h:6