Public Member Functions

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

FIFE::LZSSDecoder::LZSSDecoder (  ) 

Constructor

Definition at line 34 of file lzssdecoder.cpp.

FIFE::LZSSDecoder::~LZSSDecoder (  ) 

Destructor

Definition at line 35 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:
input The VFS file to read from
output The memory location to write to
outputsize The size of the memory location in byte

Definition at line 38 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: