FIFE  6e1afdbeda11afe9ac53e6023a4be96ef88f1dc6
FIFE::LZSSDecoder Class Reference

A helper class for unpacking LZSS encoded data. More...

#include <lzssdecoder.h>

+ Collaboration diagram for FIFE::LZSSDecoder:

Public Member Functions

 LZSSDecoder ()
 Constructor. More...
 
 ~LZSSDecoder ()
 Destructor. More...
 
void decode (RawData *input, uint8_t *output, const uint32_t outputsize)
 Decodes from a file into a pointer. More...
 

Private Member Functions

void LZSSDecode (uint8_t *in, int64_t len, uint8_t *out)
 

Private Attributes

uint32_t m_outlen
 
uint32_t m_outindex
 

Detailed Description

A helper class for unpacking LZSS encoded data.

Definition at line 39 of file lzssdecoder.h.

Constructor & Destructor Documentation

FIFE::LZSSDecoder::LZSSDecoder ( )

Constructor.

Definition at line 36 of file lzssdecoder.cpp.

FIFE::LZSSDecoder::~LZSSDecoder ( )

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 LZSSDecode(), m_outindex, m_outlen, FIFE::RawData::read16Big(), and FIFE::RawData::readInto().

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

+ Here is the caller graph for this function:

void FIFE::LZSSDecoder::LZSSDecode ( uint8_t *  in,
int64_t  len,
uint8_t *  out 
)
private

Definition at line 64 of file lzssdecoder.cpp.

References m_outindex.

Referenced by decode().

+ Here is the caller graph for this function:

Member Data Documentation

uint32_t FIFE::LZSSDecoder::m_outindex
private

Definition at line 58 of file lzssdecoder.h.

Referenced by decode(), and LZSSDecode().

uint32_t FIFE::LZSSDecoder::m_outlen
private

Definition at line 57 of file lzssdecoder.h.

Referenced by decode().


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