Decode BER encoded value

Namespace:  SnmpSharpNet
Assembly:  SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.7.0.0 (0.7.0.0)

Syntax

C#
public override int decode(
	byte[] buffer,
	int offset
)
Visual Basic (Declaration)
Public Overrides Function decode ( _
	buffer As Byte(), _
	offset As Integer _
) As Integer
Visual C++
public:
virtual int decode(
	array<unsigned char>^ buffer, 
	int offset
) override

Parameters

buffer
Type: array< System..::.Byte >[]()[]
BER encoded buffer
offset
Type: System..::.Int32
The offset of the first byte of data to decode. This variable will hold the offset of the first byte immediately after the value we decoded.

Return Value

Buffer position after the decoded value

Remarks

Used to decode the integer value from the ASN.1 buffer. The passed encoder is used to decode the ASN.1 information and the integer value is stored in the internal object.

See Also