FIFE  2008.0
 All Classes Namespaces Functions Variables Enumerations Enumerator
FIFE::LZSSDecoder Class Reference

#include <lzssdecoder.h>

List of all members.

Public Member Functions

 LZSSDecoder ()
 ~LZSSDecoder ()
void decode (RawData *input, uint8_t *output, const uint32_t outputsize)

Detailed Description

A helper class for unpacking LZSS encoded data

Bug:

just a quick&dirty LZSS implementation, optimized a bit see revision 719 for the original one and 795 for the broken optimized one

the lzss decoder might very well crash on corrupt data.

Definition at line 39 of file lzssdecoder.h.


Constructor & Destructor Documentation

Constructor

Definition at line 36 of file lzssdecoder.cpp.

Destructor

Definition at line 37 of file lzssdecoder.cpp.


Member Function Documentation

void FIFE::LZSSDecoder::decode ( RawData input,
uint8_t *  output,
const uint32_t  outputsize 
)

Decodes from a file into a pointer.

Parameters:
inputThe VFS file to read from
outputThe memory location to write to
outputsizeThe size of the memory location in byte

Definition at line 40 of file lzssdecoder.cpp.

References FIFE::RawData::read16Big(), and FIFE::RawData::readInto().

Referenced by FIFE::RawDataDAT1::RawDataDAT1().

Here is the caller graph for this function:


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