Convert ScopedPdu into a BER encoded byte array. Resulting byte array is appended
to the argument specified MutableByte class.
Privacy operations are not performed by this method. Value encoded and returned by this method is
suitable for sending in NoAuthNoPriv or AuthNoPriv security configurations. If privacy is required,
caller will have to perform encryption and decryption operations after BER encoding is performed.
In privacy protected SNMP version 3 packets, ScopedPdu is 1) encrypted using configured encryption
method, 2) added to a OctetString field, and 3) appended to the data buffer.
Because privacy operation is intrusive, it is recommended that BER encoding of the ScopedPdu packet
is stored in a temporary MutableByte class, where it can be privacy protected and
added to the OctetString class for final encoding into the target SNMP v3 packet.
Namespace:
SnmpSharpNetAssembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.5.0.0 (0.5.0.0)
Syntax
| C# | Visual Basic | Visual C++ |
public override void encode( MutableByte buffer )
Public Overrides Sub encode ( _ buffer As MutableByte _ )
public: virtual void encode( MutableByte^ buffer ) override
Parameters
- buffer
- MutableByte
MutableByte class passed by reference that encoded ScopedPdu value is appended to.