Decode null value from BER encoded buffer.

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>[]()[][]
BER encoded buffer
offset
Type: System..::..Int32
Offset within the buffer from where to start decoding. On return, this argument contains the offset immediately following the decoded value.

Return Value

Buffer position after the decoded value

Exceptions

ExceptionCondition
SnmpSharpNet..::..SnmpExceptionThrown when parsed ASN.1 type is not null
SnmpSharpNet..::..SnmpExceptionThrown when length of null value is greater then 0 bytes

See Also