C# Class Tx.Network.Snmp.Asn1EncoderExtensions

Internal class which provides Asn1 Encoding extension methods
Afficher le fichier Open project: Reactive-Extensions/Tx

Méthodes publiques

Méthode Description
EncodeClassConstructType ( this data, int offset, Asn1Class asn1Class, ConstructType constructType, byte tag ) : int

Encodes the type of the class construct.

EncodeInteger ( this data, int offset, int value ) : int

Encodes the integer.

EncodeLength ( this data, int offset, int lengthIntegerToEncode ) : int

Encodes the length.

EncodeLongInteger ( this data, int offset, long value ) : int

Encodes the long integer.

EncodeNull ( this data, int offset ) : int

Encodes the null.

EncodeOctetString ( this data, int offset, string octetString ) : int

Encodes the octet string.

EncodeVarBinds ( this data, int offset, IReadOnlyCollection varBinds ) : int

Encodes the variable binds.

GetIntegerLength ( this value ) : int

Gets the length of the integer for encoding.

Private Methods

Méthode Description
EncodeIPAddress ( this bytes, int offset, System ipAddress ) : int

Encodes the ip address.

EncodeOid ( this data, int offset, ReadOnlyCollection subOids ) : int

Encodes the oid.

EncodeSubID ( uint subid, byte data, int offset ) : int

Encodes the sub identifier.

EncodeUnsignedInteger ( this data, int offset, uint value, byte tag ) : int

Encodes the unsigned integer.

EncodeUnsignedLong ( this data, int offset, ulong value, byte tag ) : int

Encodes the unsigned long.

GetOidLength ( ReadOnlyCollection oid ) : int

Gets the length of the oid.

GetStringLength ( string octetString ) : int

Gets the length of the string.

SizeOfSubID ( uint subid ) : int

Sizes the of sub identifier.

Method Details

EncodeClassConstructType() public static méthode

Encodes the type of the class construct.
public static EncodeClassConstructType ( this data, int offset, Asn1Class asn1Class, ConstructType constructType, byte tag ) : int
data this The data.
offset int The offset.
asn1Class Asn1Class The asn1 class.
constructType ConstructType Type of the construct.
tag byte The tag.
Résultat int

EncodeInteger() public static méthode

Encodes the integer.
public static EncodeInteger ( this data, int offset, int value ) : int
data this The data.
offset int The offset.
value int The value.
Résultat int

EncodeLength() public static méthode

Encodes the length.
public static EncodeLength ( this data, int offset, int lengthIntegerToEncode ) : int
data this The data.
offset int The offset.
lengthIntegerToEncode int The length integer to encode.
Résultat int

EncodeLongInteger() public static méthode

Encodes the long integer.
public static EncodeLongInteger ( this data, int offset, long value ) : int
data this The data.
offset int The offset.
value long The value.
Résultat int

EncodeNull() public static méthode

Encodes the null.
public static EncodeNull ( this data, int offset ) : int
data this The data.
offset int The offset.
Résultat int

EncodeOctetString() public static méthode

Encodes the octet string.
public static EncodeOctetString ( this data, int offset, string octetString ) : int
data this The data.
offset int The offset.
octetString string The octet string.
Résultat int

EncodeVarBinds() public static méthode

Encodes the variable binds.
public static EncodeVarBinds ( this data, int offset, IReadOnlyCollection varBinds ) : int
data this The data.
offset int The offset.
varBinds IReadOnlyCollection The variable binds.
Résultat int

GetIntegerLength() public static méthode

Gets the length of the integer for encoding.
public static GetIntegerLength ( this value ) : int
value this The integer value whose length need to be found.
Résultat int