Wraps a FileMap so we can handle errors and exceptions more easily.
More...
#include <WEMPersistenceHelper.h>
Wraps a FileMap so we can handle errors and exceptions more easily.
Definition at line 34 of file WEMPersistenceHelper.h.
◆ FileMapWrapper()
ml::FileMapWrapper::FileMapWrapper |
( |
MLuint64 |
filesize, |
|
|
char * |
startAddress |
|
) |
| |
◆ advance()
void ml::FileMapWrapper::advance |
( |
size_t |
byteSize | ) |
|
◆ getCurrentAddress() [1/2]
const char* ml::FileMapWrapper::getCurrentAddress |
( |
| ) |
const |
|
inline |
◆ getCurrentAddress() [2/2]
const char* ml::FileMapWrapper::getCurrentAddress |
( |
size_t |
byteSize | ) |
|
◆ getInitialAddress()
const char* ml::FileMapWrapper::getInitialAddress |
( |
| ) |
const |
|
inline |
◆ getNumBytesRead()
MLuint64 ml::FileMapWrapper::getNumBytesRead |
( |
| ) |
const |
◆ readStringFromMap()
void ml::FileMapWrapper::readStringFromMap |
( |
std::string & |
value, |
|
|
size_t |
stringLength |
|
) |
| |
◆ readStringWithSizeFromMap()
void ml::FileMapWrapper::readStringWithSizeFromMap |
( |
std::string & |
value | ) |
|
◆ readValueFromMap()
template<typename DT >
DT ml::FileMapWrapper::readValueFromMap |
( |
| ) |
|
|
inline |
◆ readValueFromMapAhead()
template<typename DT >
DT ml::FileMapWrapper::readValueFromMapAhead |
( |
| ) |
|
|
inline |
◆ readVector3FromMap()
void ml::FileMapWrapper::readVector3FromMap |
( |
Vector3 & |
value, |
|
|
size_t |
byteSize |
|
) |
| |
◆ readVector4FromMap()
void ml::FileMapWrapper::readVector4FromMap |
( |
Vector4 & |
value, |
|
|
size_t |
byteSize |
|
) |
| |
◆ setSwapBytes()
void ml::FileMapWrapper::setSwapBytes |
( |
bool |
swapBytes | ) |
|
|
inline |
The documentation for this class was generated from the following file: