|
FIFE 2008.0
|
#include <rawdatamemsource.h>


Public Member Functions | |
| RawDataMemSource (unsigned int datalen) | |
| uint8_t * | getRawData () const |
| virtual unsigned int | getSize () const |
| virtual void | readInto (uint8_t *buffer, unsigned int start, unsigned int length) |
Simpe RawDataSource that reads data from raw memory
getRawData to write into the Buffer.Definition at line 48 of file rawdatamemsource.h.
| FIFE::RawDataMemSource::RawDataMemSource | ( | unsigned int | datalen | ) |
Create a new RawDataMemSource that allocates datalen bytes.
| datalen | the datalen to allocate |
Definition at line 35 of file rawdatamemsource.cpp.
| uint8_t * FIFE::RawDataMemSource::getRawData | ( | ) | const |
Get a Pointer to the data You need to use this function to fill the class with meaningfull data.
Definition at line 50 of file rawdatamemsource.cpp.
Referenced by FIFE::RawDataDAT1::RawDataDAT1(), and FIFE::RawDataDAT2::RawDataDAT2().

| unsigned int FIFE::RawDataMemSource::getSize | ( | ) | const [virtual] |
get the complete datasize
Implements FIFE::RawDataSource.
Definition at line 42 of file rawdatamemsource.cpp.
Referenced by FIFE::RawDataDAT1::RawDataDAT1().

| void FIFE::RawDataMemSource::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 46 of file rawdatamemsource.cpp.