Decode ASN.1 encoded IP address value.
Namespace:
SnmpSharpNetAssembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.5.2.0 (0.5.2.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 data buffer
- offset
- Type: System..::.Int32
Offset in the array to start parsing from
Return Value
[Missing <returns> documentation for "M:SnmpSharpNet.IpAddress.decode(System.Byte[],System.Int32)"]
Exceptions
| Exception | Condition |
|---|---|
| System..::.OverflowException | Parsed data length is not 4 bytes long |
| SnmpSharpNet..::.SnmpException | Parsed data is not in IpAddress format |