Encode Pdu class to BER byte buffer

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

Syntax

C#
public override void encode(
	MutableByte buffer
)
Visual Basic
Public Overrides Sub encode ( _
	buffer As MutableByte _
)
Visual C++
public:
virtual void encode(
	MutableByte^ buffer
) override

Parameters

buffer
Type: SnmpSharpNet..::..MutableByte
The buffer to write the encoded information.

Remarks

Encodes the protocol data unit using the passed encoder and stores the results in the passed buffer. An exception is thrown if an error occurs with the encoding of the information.

See Also