Decode USM portion of the SNMP version 3 packet.

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>[]()[][]
Received SNMP packet BER encoded
offset
Type: System..::..Int32
Offset within the buffer to start decoding USM information

Return Value

Buffer position after the decoded value

Exceptions

ExceptionCondition
SnmpSharpNet..::..SnmpDecodingExceptionThrown when decoding enountered invalid data type in USM information
System..::..OverflowExceptionThrown when packet is too small to contain information length specified in header

See Also