C# 클래스 Granados.Poderosa.KeyFormat.BERReader

Reads elements which are encoded by ASN.1 Basic Encoding Rules
Only SEQUENCE and INTEGER are supported.
파일 보기 프로젝트 열기: poderosaproject/poderosa 1 사용 예제들

공개 메소드들

메소드 설명
BERReader ( Stream s ) : NUnit.Framework

Constructor

ReadBitString ( byte &bits ) : bool

Read bit string.

ReadInteger ( BigInteger &bigint ) : bool

Read integer.

ReadObjectIdentifier ( string &oid ) : bool

Read object-identifier.

ReadOctetString ( byte &str ) : bool

Read octet-string.

ReadSequence ( ) : bool

Read sequnce. (only check the value type)

ReadTag ( TagClass tagClass, bool isConstructed, int tagNumber, int &length ) : bool

Read tag. (only check the value type)

비공개 메소드들

메소드 설명
ReadBinary ( TagClass tagClass, bool isConstructed, int tagNumber, byte &data ) : bool
ReadLength ( int &length ) : bool
ReadTag ( int &cls, bool &constructed, int &tagnum ) : bool
ReadTagInfo ( BERTagInfo &tagInfo ) : bool

메소드 상세

BERReader() 공개 메소드

Constructor
public BERReader ( Stream s ) : NUnit.Framework
s Stream stream to input
리턴 NUnit.Framework

ReadBitString() 공개 메소드

Read bit string.
public ReadBitString ( byte &bits ) : bool
bits byte byte array will be stored if succeeded.
리턴 bool

ReadInteger() 공개 메소드

Read integer.
public ReadInteger ( BigInteger &bigint ) : bool
bigint BigInteger BigInteger instance will be stored if succeeded.
리턴 bool

ReadObjectIdentifier() 공개 메소드

Read object-identifier.
public ReadObjectIdentifier ( string &oid ) : bool
oid string object identifier will be stored if succeeded.
리턴 bool

ReadOctetString() 공개 메소드

Read octet-string.
public ReadOctetString ( byte &str ) : bool
str byte byte array will be stored if succeeded.
리턴 bool

ReadSequence() 공개 메소드

Read sequnce. (only check the value type)
public ReadSequence ( ) : bool
리턴 bool

ReadTag() 공개 메소드

Read tag. (only check the value type)
public ReadTag ( TagClass tagClass, bool isConstructed, int tagNumber, int &length ) : bool
tagClass TagClass expected tag class
isConstructed bool expected value of "constructed" flag
tagNumber int expected tag number
length int length of the value field will be stored
리턴 bool