FIFE 2008.0
|
#include <lzssdecoder.h>
Public Member Functions | |
LZSSDecoder () | |
~LZSSDecoder () | |
void | decode (RawData *input, uint8_t *output, const uint32_t outputsize) |
A helper class for unpacking LZSS encoded data
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.
FIFE::LZSSDecoder::LZSSDecoder | ( | ) |
Constructor
Definition at line 36 of file lzssdecoder.cpp.
FIFE::LZSSDecoder::~LZSSDecoder | ( | ) |
Destructor
Definition at line 37 of file lzssdecoder.cpp.
void FIFE::LZSSDecoder::decode | ( | RawData * | input, |
uint8_t * | output, | ||
const uint32_t | outputsize | ||
) |
Decodes from a file into a pointer.
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 40 of file lzssdecoder.cpp.
References FIFE::RawData::read16Big(), and FIFE::RawData::readInto().
Referenced by FIFE::RawDataDAT1::RawDataDAT1().