FIFE  6e1afdbeda11afe9ac53e6023a4be96ef88f1dc6
FIFE::ZipFileSource Class Reference

#include <zipfilesource.h>

+ Inheritance diagram for FIFE::ZipFileSource:
+ Collaboration diagram for FIFE::ZipFileSource:

Public Member Functions

 ZipFileSource (uint8_t *data, uint32_t datalen)
 
virtual ~ZipFileSource ()
 
virtual uint32_t getSize () const
 get the complete datasize More...
 
virtual void readInto (uint8_t *target, uint32_t start, uint32_t len)
 read data from the source More...
 
- Public Member Functions inherited from FIFE::RawDataSource
 RawDataSource ()
 
virtual ~RawDataSource ()
 

Private Attributes

uint8_t * m_data
 
uint32_t m_datalen
 

Detailed Description

Definition at line 29 of file zipfilesource.h.

Constructor & Destructor Documentation

FIFE::ZipFileSource::ZipFileSource ( uint8_t *  data,
uint32_t  datalen 
)

Definition at line 36 of file zipfilesource.cpp.

FIFE::ZipFileSource::~ZipFileSource ( )
virtual

Definition at line 39 of file zipfilesource.cpp.

References m_data.

Member Function Documentation

uint32_t FIFE::ZipFileSource::getSize ( ) const
virtual

get the complete datasize

Implements FIFE::RawDataSource.

Definition at line 43 of file zipfilesource.cpp.

References m_datalen.

void FIFE::ZipFileSource::readInto ( uint8_t *  buffer,
uint32_t  start,
uint32_t  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 47 of file zipfilesource.cpp.

References m_data, and m_datalen.

Member Data Documentation

uint8_t* FIFE::ZipFileSource::m_data
private

Definition at line 38 of file zipfilesource.h.

Referenced by readInto(), and ~ZipFileSource().

uint32_t FIFE::ZipFileSource::m_datalen
private

Definition at line 39 of file zipfilesource.h.

Referenced by getSize(), and readInto().


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