ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Common::DecompressorDCL Class Reference

Collaboration diagram for Common::DecompressorDCL:

List of all members.

Public Member Functions

bool unpack (SeekableReadStream *sourceStream, WriteStream *targetStream, uint32 targetSize, bool targetFixedSize)

Protected Member Functions

void init (SeekableReadStream *sourceStream, WriteStream *targetStream, uint32 targetSize, bool targetFixedSize)
 Initialize decompressor.
uint32 getBitsLSB (int n)
 Get a number of bits from _src stream, starting with the least significant unread bit of the current four byte block.
byte getByteLSB ()
 Get one byte from _src stream.
void fetchBitsLSB ()
void putByte (byte b)
 Write one byte into _dest stream.
int huffman_lookup (const int *tree)

Protected Attributes

uint32 _dwBits
 bits buffer
byte _nBits
 number of unread bits in _dwBits
uint32 _sourceSize
 size of the source stream
uint32 _targetSize
 size of the target stream (if fixed)
bool _targetFixedSize
 if target stream is fixed size or dynamic size
uint32 _bytesRead
 number of bytes read from _sourceStream
uint32 _bytesWritten
 number of bytes written to _targetStream
SeekableReadStream_sourceStream
WriteStream_targetStream

Detailed Description

Definition at line 31 of file dcl.cpp.


Member Function Documentation

void Common::DecompressorDCL::fetchBitsLSB (  )  [protected]

Definition at line 89 of file dcl.cpp.

uint32 Common::DecompressorDCL::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:
n number of bits to get
Returns:
n-bits number

Definition at line 97 of file dcl.cpp.

byte Common::DecompressorDCL::getByteLSB (  )  [protected]

Get one byte from _src stream.

Returns:
byte

Definition at line 107 of file dcl.cpp.

int Common::DecompressorDCL::huffman_lookup ( const int *  tree  )  [protected]

Definition at line 319 of file dcl.cpp.

void Common::DecompressorDCL::init ( SeekableReadStream sourceStream,
WriteStream targetStream,
uint32  targetSize,
bool  targetFixedSize 
) [protected]

Initialize decompressor.

Parameters:
sourceStream source stream to read from
targetStream target memory stream to write to

Definition at line 78 of file dcl.cpp.

void Common::DecompressorDCL::putByte ( byte  b  )  [protected]

Write one byte into _dest stream.

Parameters:
b byte to put

Definition at line 111 of file dcl.cpp.

bool Common::DecompressorDCL::unpack ( SeekableReadStream sourceStream,
WriteStream targetStream,
uint32  targetSize,
bool  targetFixedSize 
)

Definition at line 337 of file dcl.cpp.


Member Data Documentation

number of bytes read from _sourceStream

Definition at line 72 of file dcl.cpp.

number of bytes written to _targetStream

Definition at line 73 of file dcl.cpp.

bits buffer

Definition at line 67 of file dcl.cpp.

number of unread bits in _dwBits

Definition at line 68 of file dcl.cpp.

size of the source stream

Definition at line 69 of file dcl.cpp.

Definition at line 74 of file dcl.cpp.

if target stream is fixed size or dynamic size

Definition at line 71 of file dcl.cpp.

size of the target stream (if fixed)

Definition at line 70 of file dcl.cpp.

Definition at line 75 of file dcl.cpp.


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


Generated on Sat Sep 14 2019 05:03:54 for ResidualVM by doxygen 1.7.1
curved edge   curved edge