|
FIFE
|
Simpe RawDataSource that reads data from raw memory. More...
#include <rawdatamemsource.h>
Inheritance diagram for FIFE::RawDataMemSource:
Collaboration diagram for FIFE::RawDataMemSource:Public Member Functions | |
| RawDataMemSource (uint32_t datalen) | |
| Create a new RawDataMemSource that allocates datalen bytes. More... | |
| virtual | ~RawDataMemSource () |
| uint8_t * | getRawData () const |
| Get a Pointer to the data You need to use this function to fill the class with meaningfull data. More... | |
| virtual uint32_t | getSize () const |
| get the complete datasize More... | |
| virtual void | readInto (uint8_t *buffer, uint32_t start, uint32_t length) |
| read data from the source More... | |
Public Member Functions inherited from FIFE::RawDataSource | |
| RawDataSource () | |
| virtual | ~RawDataSource () |
Private Member Functions | |
| RawDataMemSource (const RawDataMemSource &) | |
| RawDataMemSource & | operator= (const RawDataMemSource) |
Private Attributes | |
| uint8_t * | m_data |
| uint32_t | m_datalen |
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 | ( | uint32_t | datalen | ) |
Create a new RawDataMemSource that allocates datalen bytes.
| datalen | the datalen to allocate |
Definition at line 35 of file rawdatamemsource.cpp.
|
virtual |
Definition at line 38 of file rawdatamemsource.cpp.
References m_data.
|
inlineprivate |
Definition at line 69 of file rawdatamemsource.h.
| 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.
References m_data.
Referenced by FIFE::RawDataDAT1::RawDataDAT1(), and FIFE::RawDataDAT2::RawDataDAT2().
Here is the caller graph for this function:
|
virtual |
get the complete datasize
Implements FIFE::RawDataSource.
Definition at line 42 of file rawdatamemsource.cpp.
References m_datalen.
Referenced by FIFE::RawDataDAT1::RawDataDAT1().
Here is the caller graph for this function:
|
inlineprivate |
Definition at line 70 of file rawdatamemsource.h.
|
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.
References m_data.
|
private |
Definition at line 66 of file rawdatamemsource.h.
Referenced by getRawData(), readInto(), and ~RawDataMemSource().
|
private |
Definition at line 67 of file rawdatamemsource.h.
Referenced by getSize().