FIFE  be64c707dea6b3250bd4355bf5c825d25920087d
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

◆ LZSSDecoder()

FIFE::LZSSDecoder::LZSSDecoder ( )

Constructor.

Definition at line 36 of file lzssdecoder.cpp.

◆ ~LZSSDecoder()

FIFE::LZSSDecoder::~LZSSDecoder ( )

Destructor.

Definition at line 37 of file lzssdecoder.cpp.

Member Function Documentation

◆ decode()

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:

◆ LZSSDecode()

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

◆ m_outindex

uint32_t FIFE::LZSSDecoder::m_outindex
private

Definition at line 58 of file lzssdecoder.h.

Referenced by decode(), and LZSSDecode().

◆ m_outlen

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: