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

BERGeneralDecoder Class Reference

BER General Decoder. More...

#include <asn.h>

Inheritance diagram for BERGeneralDecoder:

Store BufferedTransformationWithAutoSignal BufferedTransformation BERSequenceDecoder BERSetDecoder List of all members.

Public Methods

 BERGeneralDecoder (BufferedTransformation &inQueue,byte asnTag)
 BERGeneralDecoder (BERGeneralDecoder &inQueue,byte asnTag)
 ~BERGeneralDecoder ()
bool IsDefiniteLength ()const
unsigned int RemainingLength ()const
bool EndReached ()const
byte PeekByte ()const
void CheckByte (byte b)
unsigned long TransferTo (BufferedTransformation &target,unsigned long transferMax)
 move transferMax bytes of the buffered output to target as input. More...

unsigned long CopyTo (BufferedTransformation &target,unsigned long copyMax)const
 copy copyMax bytes of the buffered output to target as input. More...

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


Protected Attributes

BufferedTransformationm_inQueue
bool m_finished
bool m_definiteLength
unsigned int m_length

Detailed Description

BER General Decoder.

Definition at line 115 of file asn.h.


Constructor & Destructor Documentation

BERGeneralDecoder::BERGeneralDecoder ( BufferedTransformation & inQueue,
byte asnTag ) [explicit]
 

Definition at line 252 of file asn.cpp.

BERGeneralDecoder::BERGeneralDecoder ( BERGeneralDecoder & inQueue,
byte asnTag ) [explicit]
 

Definition at line 262 of file asn.cpp.

BERGeneralDecoder::~BERGeneralDecoder ( )
 

Definition at line 274 of file asn.cpp.


Member Function Documentation

void BERGeneralDecoder::CheckByte ( byte check )
 

Definition at line 305 of file asn.cpp.

unsigned long BERGeneralDecoder::CopyTo ( BufferedTransformation & target,
unsigned long copyMax ) const [virtual]
 

copy copyMax bytes of the buffered output to target as input.

Reimplemented from Store.

Definition at line 333 of file asn.cpp.

bool BERGeneralDecoder::EndReached ( ) const
 

Definition at line 286 of file asn.cpp.

bool BERGeneralDecoder::IsDefiniteLength ( ) const [inline]
 

Definition at line 122 of file asn.h.

void BERGeneralDecoder::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 312 of file asn.cpp.

Referenced by Integer::BERDecodeAsOctetString(), and PolynomialMod2::BERDecodeAsOctetString().

byte BERGeneralDecoder::PeekByte ( ) const
 

Definition at line 297 of file asn.cpp.

unsigned int BERGeneralDecoder::RemainingLength ( ) const [inline]
 

Definition at line 123 of file asn.h.

unsigned long BERGeneralDecoder::TransferTo ( BufferedTransformation & target,
unsigned long transferMax ) [virtual]
 

move transferMax bytes of the buffered output to target as input.

Reimplemented from Store.

Definition at line 328 of file asn.cpp.


Member Data Documentation

bool BERGeneralDecoder::m_definiteLength [protected]
 

Definition at line 136 of file asn.h.

bool BERGeneralDecoder::m_finished [protected]
 

Definition at line 136 of file asn.h.

BufferedTransformation & BERGeneralDecoder::m_inQueue [protected]
 

Definition at line 135 of file asn.h.

unsigned int BERGeneralDecoder::m_length [protected]
 

Definition at line 137 of file asn.h.


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