ScummVM API documentation
Cine::CineUnpacker Class Reference

#include <unpack.h>

Public Member Functions

bool unpack (const byte *src, uint srcLen, byte *dst, uint dstLen)
 

Detailed Description

A LZ77 style decompressor for Delphine's data files used in at least Future Wars and Operation Stealth.

Note
Works backwards in the source and destination buffers.
Warning
Having the source and destination in the same buffer when unpacking can cause errors!

Member Function Documentation

◆ unpack()

bool Cine::CineUnpacker::unpack ( const byte *  src,
uint  srcLen,
byte *  dst,
uint  dstLen 
)

Unpacks packed data from the source buffer to the destination buffer.

Note
You may call this on already unpacked data but then source length must be equal to destination length.
Warning
The source and destination should not point to the same buffer. If they do, errors may occur!
Parameters
srcPointer to the source buffer.
srcLenLength of the source buffer.
dstPointer to the destination buffer.
dstLenLength of the destination buffer.
Returns
True if no errors were detected in the source data and unpacking was successful, otherwise false.

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