Asn1MderDecodeBuffer Class Reference

Asn1MderDecodeBuffer provides the source for an MDER decode.

Inheritance diagram for Asn1MderDecodeBuffer:
Asn1DecodeBuffer Asn1InputStream Asn1MessageBuffer Asn1MessageBufferBase

List of all members.

Public Member Functions

 Asn1MderDecodeBuffer (System.IO.Stream istream)
 Asn1MderDecodeBuffer (byte[] msgdata)
int Available ()
void Close ()
bool MarkSupported ()
override int ReadByte ()

Constructor & Destructor Documentation

Asn1MderDecodeBuffer ( byte[]  msgdata  ) 

Convenience method to create a decoder on an array of data.

Parameters:
msgdata 
Asn1MderDecodeBuffer ( System.IO.Stream  istream  ) 

Create a decoder on the given input stream.

Parameters:
istream 

Member Function Documentation

int Available (  ) 

Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream. The next caller might be the same thread or or another thread.

Returns:
the number of bytes that can be read from this input stream without blocking.
Exceptions:
System.SystemException if an I/O error occurs.

Implements Asn1InputStream.

void Close (  ) 

Closes this input stream and releases any system resources associated with the stream.

Exceptions:
System.SystemException if an I/O error occurs.

Implements Asn1InputStream.

bool MarkSupported (  ) 

Tests if this input stream supports the seeking. This method is equivalent to C# CanSeek method of System.IO.Stream.

Returns:
true if input stream supports seeking; Otherwise false.

Implements Asn1InputStream.

override int ReadByte (  )  [virtual]

This abstract method returns the next available 8-bit value from the input stream. It is implemented differently for BER/DER and PER to take into account odd alignments in PER.

Returns:
Next 8-bit byte value from input stream

Implements Asn1DecodeBuffer.