Decode BER encoded no-such-instance SNMP version 2 MIB value

Namespace: SnmpSharpNet
Assembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.9.1.0 (0.9.1)

Syntax

C#
public override int decode(
	byte[] buffer,
	int offset
)
Visual Basic
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>[]()[][]
The BER encoded buffer
offset
Type: System..::..Int32
The offset of the first byte of encoded data

Return Value

Buffer position after the decoded value

Exceptions

ExceptionCondition
SnmpSharpNet..::..SnmpExceptionInvalid ASN.1 type found when parsing value header
SnmpSharpNet..::..SnmpDecodingExceptionInvalid data length in ASN.1 header. Only data length 0 is accepted.

See Also