FIFE  2008.0
FIFE::RawDataMemSource Class Reference

#include <rawdatamemsource.h>

Inheritance diagram for FIFE::RawDataMemSource:
Collaboration diagram for FIFE::RawDataMemSource:

List of all members.

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)

Detailed Description

Simpe RawDataSource that reads data from raw memory

Note:
This Class is not incomplete. Use getRawData to write into the Buffer.
See also:
RawDataSource

Definition at line 48 of file rawdatamemsource.h.


Constructor & Destructor Documentation

FIFE::RawDataMemSource::RawDataMemSource ( unsigned int  datalen)

Create a new RawDataMemSource that allocates datalen bytes.

Parameters:
datalenthe datalen to allocate

Definition at line 35 of file rawdatamemsource.cpp.


Member Function Documentation

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

void FIFE::RawDataMemSource::readInto ( uint8_t *  buffer,
unsigned int  start,
unsigned int  length 
) [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

Implements FIFE::RawDataSource.

Definition at line 46 of file rawdatamemsource.cpp.


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