NDEVR
API Documentation
ZlibInStream

A zlib decompression stream wrapper used by TightDecoder to inflate compressed VNC data. More...

Public Member Functions

 ZlibInStream ()
 Constructs and initializes the zlib stream.
 ~ZlibInStream ()
 Destructor.
void deinit ()
 Releases the zlib inflate state.
void flushUnderlying ()
 Flushes any remaining data in the underlying buffer.
void init ()
 Initializes the zlib inflate state.
bool readBytes (uint01 *data, size_t length)
 Reads and decompresses bytes from the stream.
void reset ()
 Resets the stream, clearing buffered data and reinitializing zlib.
void setUnderlying (const uint01 *is, size_t bytesIn_)
 Appends compressed data to the internal buffer.

Detailed Description

A zlib decompression stream wrapper used by TightDecoder to inflate compressed VNC data.


Definition at line 14 of file TightDecoder.h.

Constructor & Destructor Documentation

◆ ~ZlibInStream()

ZlibInStream::~ZlibInStream ( )
inline

Destructor.

Releases zlib resources.

Definition at line 26 of file TightDecoder.h.

References deinit().

Member Function Documentation

◆ readBytes()

bool ZlibInStream::readBytes ( uint01 * data,
size_t length )

Reads and decompresses bytes from the stream.

Parameters
[out]dataDestination buffer for decompressed data.
[in]lengthNumber of bytes to decompress.
Returns
true on success.

◆ setUnderlying()

void ZlibInStream::setUnderlying ( const uint01 * is,
size_t bytesIn_ )
inline

Appends compressed data to the internal buffer.

Parameters
[in]isPointer to compressed data bytes.
[in]bytesIn_Number of bytes to append.

Definition at line 34 of file TightDecoder.h.

References cast().

Referenced by flushUnderlying().


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