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

FilterWithBufferedInput Class Reference

#include <filters.h>

Inheritance diagram for FilterWithBufferedInput:

Filter BufferedTransformation CBC_CTS_Decryptor CBC_CTS_Encryptor CBCPaddedDecryptor CBCPaddedEncryptor CBCRawDecryptor CBCRawEncryptor HashVerifier ProxyFilter List of all members.

Public Methods

 FilterWithBufferedInput (unsigned int firstSize,unsigned int blockSize,unsigned int lastSize,BufferedTransformation *outQ)
 firstSize and lastSize may be 0, blockSize must be at least 1. More...

void Put (byte inByte)
 input a byte for processing. More...

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

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

void ForceNextPut ()

Protected Methods

bool DidFirstPut ()
virtual void FirstPut (const byte *inString)=0
virtual void NextPut (const byte *inString,unsigned int length)=0
virtual void LastPut (const byte *inString,unsigned int length)=0

Detailed Description

FilterWithBufferedInput divides up the input stream into a first block, a number of middle blocks, and a last block. First and last blocks are optional, and middle blocks may be a stream instead (i.e. blockSize == 1).

Definition at line 55 of file filters.h.


Constructor & Destructor Documentation

FilterWithBufferedInput::FilterWithBufferedInput ( unsigned int firstSize,
unsigned int blockSize,
unsigned int lastSize,
BufferedTransformation * outQ )
 

firstSize and lastSize may be 0, blockSize must be at least 1.

Definition at line 93 of file filters.cpp.


Member Function Documentation

bool FilterWithBufferedInput::DidFirstPut ( ) [inline, protected]
 

Definition at line 70 of file filters.h.

void FilterWithBufferedInput::ForceNextPut ( )
 

the input buffer may contain more than blockSize bytes if lastSize != 0 ForceNextPut() forces a call to NextPut() if this is the case

Definition at line 190 of file filters.cpp.

void FilterWithBufferedInput::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 175 of file filters.cpp.

void FilterWithBufferedInput::Put ( const byte * inString,
unsigned int length ) [virtual]
 

input multiple bytes.

Reimplemented from BufferedTransformation.

Definition at line 105 of file filters.cpp.

void FilterWithBufferedInput::Put ( byte inByte ) [virtual]
 

input a byte for processing.

Reimplemented from BufferedTransformation.

Definition at line 100 of file filters.cpp.


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