#include <unpack.h>
|
| bool | unpack (const byte *src, uint srcLen, byte *dst, uint dstLen) |
| |
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!
◆ 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
-
| src | Pointer to the source buffer. |
| srcLen | Length of the source buffer. |
| dst | Pointer to the destination buffer. |
| dstLen | Length 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: