FIFE
be64c707dea6b3250bd4355bf5c825d25920087d
|
Abstract baseclass - provides data for RawData. More...
#include <rawdatasource.h>
Public Member Functions | |
RawDataSource () | |
virtual | ~RawDataSource () |
virtual uint32_t | getSize () const =0 |
get the complete datasize More... | |
virtual void | readInto (uint8_t *buffer, uint32_t start, uint32_t length)=0 |
read data from the source More... | |
Abstract baseclass - provides data for RawData.
RawData uses RawDataSources to access the data - if you want to add support for a new archivetype this is one of the classes you need.
Definition at line 44 of file rawdatasource.h.
FIFE::RawDataSource::RawDataSource | ( | ) |
Definition at line 34 of file rawdatasource.cpp.
|
virtual |
Definition at line 36 of file rawdatasource.cpp.
|
pure virtual |
get the complete datasize
Implemented in FIFE::RawDataMemSource, FIFE::RawDataFile, and FIFE::ZipFileSource.
Referenced by FIFE::RawData::getDataLength().
|
pure 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 |
Implemented in FIFE::RawDataMemSource, FIFE::RawDataFile, and FIFE::ZipFileSource.
Referenced by FIFE::RawData::readInto().