C# 클래스 Tx.Network.Snmp.Asn1DecoderExtensions

Internal class that provides extension methods for Asn1 decoder
파일 보기 프로젝트 열기: Reactive-Extensions/Tx

공개 메소드들

메소드 설명
DecodeToClassConstructType ( this byteToDecode ) : Asn1TagInfo

Decodes the type of to class construct.

ReadInteger ( this bytes, int offset, int length ) : int

Reads the integer.

ReadLongInteger ( this bytes, int offset, int length ) : long

Reads the long integer.

ReadOids ( this bytes, int offset, int length ) : uint[]

Reads the oids.

ReadUnsignedInteger ( this bytes, int offset, int length ) : uint

Reads the unsigned integer.

ReadVarBinds ( this bytes, int offset, int bytesLength ) : Tx.Network.Snmp.VarBind[]

Reads the variable binds.

비공개 메소드들

메소드 설명
DecodeSubID ( byte data, int offset, uint &subID ) : int

Decodes the sub identifier.

GetVarBindValue ( byte bytes, int offset, int length, Asn1TagInfo tagInfo, object &value ) : int

Gets the variable bind value.

MakeVarBinds ( VarBind &varBinds, uint key, object value, Asn1TagInfo tag, int varbindCount ) : void

Makes the variable binds.

ReadIPAddress ( byte bytes, int startOffset ) : System.Net.IPAddress

Reads the ip address.

ReadLength ( this data, int offset, int &value ) : int

Reads the length.

ReadOctetString ( this bytes, int offset, int length ) : string

Reads the octet string.

ReadUnsignedLong ( byte bytes, int offset, int length ) : ulong

Reads the unsigned long integer.

메소드 상세

DecodeToClassConstructType() 공개 정적인 메소드

Decodes the type of to class construct.
public static DecodeToClassConstructType ( this byteToDecode ) : Asn1TagInfo
byteToDecode this The byte to decode.
리턴 Asn1TagInfo

ReadInteger() 공개 정적인 메소드

Reads the integer.
public static ReadInteger ( this bytes, int offset, int length ) : int
bytes this The bytes.
offset int The offset.
length int The length.
리턴 int

ReadLongInteger() 공개 정적인 메소드

Reads the long integer.
public static ReadLongInteger ( this bytes, int offset, int length ) : long
bytes this The bytes.
offset int The offset.
length int The length.
리턴 long

ReadOids() 공개 정적인 메소드

Reads the oids.
public static ReadOids ( this bytes, int offset, int length ) : uint[]
bytes this The bytes.
offset int The offset.
length int The length.
리턴 uint[]

ReadUnsignedInteger() 공개 정적인 메소드

Reads the unsigned integer.
public static ReadUnsignedInteger ( this bytes, int offset, int length ) : uint
bytes this The bytes.
offset int The offset.
length int The length.
리턴 uint

ReadVarBinds() 공개 정적인 메소드

Reads the variable binds.
Bad Data/Mulformated Asn1/Snmp data Malformed datagram/Out of sequemce data
public static ReadVarBinds ( this bytes, int offset, int bytesLength ) : Tx.Network.Snmp.VarBind[]
bytes this The bytes.
offset int The offset.
bytesLength int Length of the bytes.
리턴 Tx.Network.Snmp.VarBind[]