ASN1C C# Runtime Library  7.5
Public Member Functions | List of all members
Asn1InputStream Interface Reference
Inheritance diagram for Asn1InputStream:
Asn1BerInputStream Asn1DerInputStream Asn1MderDecodeBuffer Asn1PerInputStream Asn1CerInputStream

Public Member Functions

int Available ()
 
void Close ()
 
void Mark ()
 
bool MarkSupported ()
 
void Reset ()
 
long Skip (long nbytes)
 

Detailed Description

This interface is a base interface for all classes, which implement an input stream functionality for decoding.

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.

Implemented in Asn1PerInputStream, Asn1BerInputStream, Asn1DerInputStream, and Asn1MderDecodeBuffer.

◆ Close()

void Close ( )

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

Exceptions
System.SystemExceptionif an I/O error occurs.

Implemented in Asn1PerInputStream, Asn1BerInputStream, Asn1DerInputStream, and Asn1MderDecodeBuffer.

◆ Mark()

void Mark ( )

This method is used to mark the current position in the input stream for retry processing or reseting the input stream position to current position.

Implemented in Asn1PerInputStream, Asn1BerInputStream, and Asn1DerInputStream.

◆ 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.

Implemented in Asn1PerInputStream, Asn1BerInputStream, Asn1DerInputStream, and Asn1MderDecodeBuffer.

◆ Reset()

void Reset ( )

This method is used to reset the current position in the input stream back to the location of the last 'mark' call. It is equivalent to calling 'Stream.Position' to marked location.

Implemented in Asn1PerInputStream, Asn1BerInputStream, and Asn1DerInputStream.

◆ Skip()

long Skip ( long  nbytes)

This method will skip over the requested number of bytes in the input stream.

Parameters
nbytesNumber of bytes to skip
Exceptions
System.SystemExceptionif an I/O error occurs.
Returns
Skipped number of bytes

Implemented in Asn1PerInputStream, Asn1BerInputStream, and Asn1DerInputStream.