Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Deflator Class Reference

DEFLATE (RFC 1951) compressor. More...

#include <zdeflate.h>

Inheritance diagram for Deflator:

LowFirstBitWriter Filter BufferedTransformation Gzip ZlibCompressor List of all members.

Public Types

enum  { DEFAULT_DEFLATE_LEVEL = 6, DEFAULT_LOG2_WINDOW_SIZE = 15 }

Public Methods

 Deflator (BufferedTransformation *outQ=NULL,unsigned int deflateLevel=DEFAULT_DEFLATE_LEVEL,unsigned int log2WindowSize=DEFAULT_LOG2_WINDOW_SIZE)
void SetDeflateLevel (unsigned int deflateLevel)
unsigned int GetDeflateLevel ()const
unsigned int GetLog2WindowSize ()const
void Put (byte inByte)
 input a byte for processing. More...

void Put (const byte *str,unsigned int length)
 input multiple bytes. More...

void Flush (bool completeFlush,int propagation=-1)
 process everything in internal buffers and output them. More...

void MessageEnd (int propagation=-1)
 mark end of an input segment, message, or packet. More...


Detailed Description

DEFLATE (RFC 1951) compressor.

Definition at line 54 of file zdeflate.h.


Member Enumeration Documentation

anonymous enum
 

Definition at line 57 of file zdeflate.h.


Constructor & Destructor Documentation

Deflator::Deflator ( BufferedTransformation * outQ = NULL,
unsigned int deflateLevel = DEFAULT_DEFLATE_LEVEL,
unsigned int log2WindowSize = DEFAULT_LOG2_WINDOW_SIZE )
 

Definition at line 204 of file zdeflate.cpp.


Member Function Documentation

void Deflator::Flush ( bool completeFlush,
int propagation = -1 ) [virtual]
 

process everything in internal buffers and output them.

throws exception if completeFlush == true and it's not possible to flush everything

Reimplemented from BufferedTransformation.

Definition at line 440 of file zdeflate.cpp.

unsigned int Deflator::GetDeflateLevel ( ) const [inline]
 

Definition at line 61 of file zdeflate.h.

unsigned int Deflator::GetLog2WindowSize ( ) const [inline]
 

Definition at line 62 of file zdeflate.h.

void Deflator::MessageEnd ( int propagation = -1 ) [virtual]
 

mark end of an input segment, message, or packet.

propagation != 0 means pass on the signal to attached BufferedTransformation objects, with propagation decremented at each step until it reaches 0. -1 means unlimited propagation.

Reimplemented from BufferedTransformation.

Definition at line 450 of file zdeflate.cpp.

void Deflator::Put ( const byte * str,
unsigned int length ) [virtual]
 

input multiple bytes.

Reimplemented from BufferedTransformation.

Definition at line 428 of file zdeflate.cpp.

void Deflator::Put ( byte inByte ) [inline, virtual]
 

input a byte for processing.

Reimplemented from BufferedTransformation.

Definition at line 64 of file zdeflate.h.

void Deflator::SetDeflateLevel ( unsigned int deflateLevel )
 

Definition at line 251 of file zdeflate.cpp.


The documentation for this class was generated from the following files:
Generated at Mon Jan 15 01:16:44 2001 for Crypto++ by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000