|
FIFE 2008.0
|
#include <rawdatafile.h>


Public Member Functions | |
| RawDataFile (const std::string &file) | |
| virtual unsigned int | getSize () const |
| virtual void | readInto (uint8_t *buffer, unsigned int start, unsigned int length) |
A RawDataSource for a file on the host system
Definition at line 43 of file rawdatafile.h.
| FIFE::RawDataFile::RawDataFile | ( | const std::string & | file | ) |
Constructor Constructs a RawDataSource for file.
| file | The path to the file to load. |
| CannotOpenFile |
Definition at line 36 of file rawdatafile.cpp.
| unsigned int FIFE::RawDataFile::getSize | ( | ) | const [virtual] |
get the complete datasize
Implements FIFE::RawDataSource.
Definition at line 50 of file rawdatafile.cpp.
| void FIFE::RawDataFile::readInto | ( | uint8_t * | buffer, |
| unsigned int | start, | ||
| unsigned int | length | ||
| ) | [virtual] |
read data from the source
| buffer | the data will be written into buffer |
| start | the startindex inside the source |
| length | length bytes will be written into buffer |
Implements FIFE::RawDataSource.
Definition at line 54 of file rawdatafile.cpp.