#include <decompressor.h>
|
virtual int | unpack (Common::ReadStream *src, byte *dest, uint32 nPacked, uint32 nUnpacked) |
|
Base class for decompressors. Simply copies nPacked bytes from src to dest.
◆ init()
virtual void Sci::Decompressor::init |
( |
Common::ReadStream * |
src, |
|
|
byte * |
dest, |
|
|
uint32 |
nPacked, |
|
|
uint32 |
nUnpacked |
|
) |
| |
|
protectedvirtual |
Initialize decompressor.
- Parameters
-
src | source stream to read from |
dest | destination stream to write to |
nPacked | size of packed data |
nUnpacket | size of unpacked data |
- Returns
- 0 on success, non-zero on error
◆ getBitsMSB()
uint32 Sci::Decompressor::getBitsMSB |
( |
int |
n | ) |
|
|
protected |
Get a number of bits from _src stream, starting with the most significant unread bit of the current four byte block.
- Parameters
-
- Returns
- n-bits number
◆ getBitsLSB()
uint32 Sci::Decompressor::getBitsLSB |
( |
int |
n | ) |
|
|
protected |
Get a number of bits from _src stream, starting with the least significant unread bit of the current four byte block.
- Parameters
-
- Returns
- n-bits number
◆ getByteMSB()
byte Sci::Decompressor::getByteMSB |
( |
| ) |
|
|
protected |
Get one byte from _src stream.
- Returns
- byte
◆ putByte()
virtual void Sci::Decompressor::putByte |
( |
byte |
b | ) |
|
|
protectedvirtual |
Write one byte into _dest stream
- Parameters
-
◆ isFinished()
bool Sci::Decompressor::isFinished |
( |
| ) |
|
|
inlineprotected |
Returns true if all expected data has been unpacked to _dest and there is no more data in _src.
The documentation for this class was generated from the following file: