Decode ASN.1 encoded IP address 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>[]()[][]
BER encoded data buffer
offset
Type: System..::..Int32
Offset in the array to start parsing from

Return Value

Buffer position after the decoded value.

Exceptions

ExceptionCondition
System..::..OverflowExceptionParsed data length is not 4 bytes long
SnmpSharpNet..::..SnmpExceptionParsed data is not in IpAddress format

See Also