ASN1C C# Runtime Library  7.8
Public Member Functions | List of all members
Asn1MderDecodeBuffer Class Reference
Inheritance diagram for Asn1MderDecodeBuffer:
Asn1DecodeBuffer Asn1InputStream Asn1MessageBuffer Asn1MessageBufferBase

Public Member Functions

 Asn1MderDecodeBuffer (byte[] msgdata)
 
 Asn1MderDecodeBuffer (System.IO.Stream istream)
 
int Available ()
 
void Close ()
 
bool MarkSupported ()
 
override int ReadByte ()
 
- Public Member Functions inherited from Asn1DecodeBuffer
virtual void AddCaptureBuffer (System.IO.MemoryStream buffer)
 
virtual void Capture (int nbytes)
 
virtual long DecodeIntValue (int length, bool signExtend)
 
int [] DecodeOIDContents (int llen)
 
BigInteger [] DecodeOIDContentsBig (int llen)
 
int [] DecodeRelOIDContents (int llen)
 
BigInteger [] DecodeRelOIDContentsBig (int llen)
 
override System.IO.Stream GetInputStream ()
 
virtual void HexDump ()
 
virtual void Mark ()
 
virtual void MarkPos (ref BufferPos bufferPos)
 
virtual int Read ()
 
virtual void Read (byte[] buffer, int offset, int nbytes)
 
virtual void Read (byte[] buffer)
 
int Read2Bytes ()
 
int Read4Bytes ()
 
virtual void RemoveCaptureBuffer (System.IO.MemoryStream buffer)
 
virtual void Reset ()
 
virtual void ResetPos (ref BufferPos bufferPos)
 
virtual void SetInputStream (byte[] msgdata, int offset, int length)
 
virtual long Skip (long nbytes)
 
void SkipOIDContents (int llen)
 
int [] SkipRelOIDContents (int llen)
 
- Public Member Functions inherited from Asn1MessageBuffer
virtual void AddNamedEventHandler (Asn1NamedEventHandler handler)
 
virtual void InvokeCharacters (System.String svalue)
 
virtual void InvokeEndElement (System.String name, int index)
 
virtual void InvokeStartElement (System.String name, int index)
 
- Public Member Functions inherited from Asn1MessageBufferBase
void SetKey (byte[] rtkey)
 
void SetPermanentKey (byte[] rtkey)
 
- Public Member Functions inherited from Asn1InputStream
void Mark ()
 
void Reset ()
 
long Skip (long nbytes)
 

Additional Inherited Members

- Static Public Member Functions inherited from Asn1MessageBufferBase
static void HexDump (System.IO.Stream ins, System.IO.StreamWriter outs)
 
static void HexDump (System.IO.Stream ins)
 
- Properties inherited from Asn1DecodeBuffer
virtual int ByteCount [get]
 
bool LazyOpenTypeDecode [get, set]
 
- Properties inherited from Asn1MessageBuffer
virtual Asn1MessageBuffer EventHandlerList [set]
 
- Properties inherited from Asn1MessageBufferBase
Asn1Context Context [get]
 
virtual short TypeCode [set]
 

Constructor & Destructor Documentation

◆ Asn1MderDecodeBuffer() [1/2]

Asn1MderDecodeBuffer ( byte []  msgdata)

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

Parameters
msgdata

◆ Asn1MderDecodeBuffer() [2/2]

Asn1MderDecodeBuffer ( System.IO.Stream  istream)

Create a decoder on the given input stream.

Parameters
istream

Member Function Documentation

◆ Available()

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.SystemExceptionif an I/O error occurs.

Implements Asn1InputStream.

◆ Close()

void Close ( )

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

Exceptions
System.SystemExceptionif an I/O error occurs.

Implements Asn1InputStream.

◆ MarkSupported()

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.

◆ ReadByte()

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.