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

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

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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.

메소드 상세

EncodeClassConstructType() 공개 정적인 메소드

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.
리턴 int

EncodeInteger() 공개 정적인 메소드

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.
리턴 int

EncodeLength() 공개 정적인 메소드

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.
리턴 int

EncodeLongInteger() 공개 정적인 메소드

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.
리턴 int

EncodeNull() 공개 정적인 메소드

Encodes the null.
public static EncodeNull ( this data, int offset ) : int
data this The data.
offset int The offset.
리턴 int

EncodeOctetString() 공개 정적인 메소드

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.
리턴 int

EncodeVarBinds() 공개 정적인 메소드

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.
리턴 int

GetIntegerLength() 공개 정적인 메소드

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.
리턴 int