FIFE::RawDataMemSource Class Reference

#include <rawdatamemsource.h>

Inheritance diagram for FIFE::RawDataMemSource:
Inheritance graph
[legend]
Collaboration diagram for FIFE::RawDataMemSource:
Collaboration graph
[legend]

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:
datalen the datalen to allocate

Definition at line 34 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 49 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 41 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:
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 45 of file rawdatamemsource.cpp.


The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.2-20100208