C# Class Tx.Network.Snmp.Asn1DecoderExtensions

Internal class that provides extension methods for Asn1 decoder
Afficher le fichier Open project: Reactive-Extensions/Tx

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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.

Method Details

DecodeToClassConstructType() public static méthode

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

ReadInteger() public static méthode

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.
Résultat int

ReadLongInteger() public static méthode

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.
Résultat long

ReadOids() public static méthode

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.
Résultat uint[]

ReadUnsignedInteger() public static méthode

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.
Résultat uint

ReadVarBinds() public static méthode

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.
Résultat Tx.Network.Snmp.VarBind[]