FIFE  be64c707dea6b3250bd4355bf5c825d25920087d
FIFE::RawDataSource Class Referenceabstract

Abstract baseclass - provides data for RawData. More...

#include <rawdatasource.h>

+ Inheritance diagram for FIFE::RawDataSource:
+ Collaboration diagram for FIFE::RawDataSource:

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ RawDataSource()

FIFE::RawDataSource::RawDataSource ( )

Definition at line 34 of file rawdatasource.cpp.

◆ ~RawDataSource()

FIFE::RawDataSource::~RawDataSource ( )
virtual

Definition at line 36 of file rawdatasource.cpp.

Member Function Documentation

◆ getSize()

virtual uint32_t FIFE::RawDataSource::getSize ( ) const
pure virtual

get the complete datasize

Implemented in FIFE::RawDataMemSource, FIFE::RawDataFile, and FIFE::ZipFileSource.

Referenced by FIFE::RawData::getDataLength().

+ Here is the caller graph for this function:

◆ readInto()

virtual void FIFE::RawDataSource::readInto ( uint8_t *  buffer,
uint32_t  start,
uint32_t  length 
)
pure virtual

read data from the source

Parameters
bufferthe data will be written into buffer
startthe startindex inside the source
lengthlength bytes will be written into buffer

Implemented in FIFE::RawDataMemSource, FIFE::RawDataFile, and FIFE::ZipFileSource.

Referenced by FIFE::RawData::readInto().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: