C# Class SnmpSharpNet.Sequence

Inheritance: AsnType, ICloneable
Show file Open project: griffina/SnmpSharpNet Class Usage Examples

Protected Properties

Property Type Description
_data byte[]

Public Methods

Method Description
Clone ( ) : object

Clone sequence

Sequence ( ) : System

Constructor

Sequence ( byte value ) : System

Constructor.

Set ( byte value ) : void

Set sequence data

decode ( byte buffer, int offset ) : int

Decode sequence from the byte array. Returned offset value is advanced by the size of the sequence header.

encode ( MutableByte buffer ) : void

BER encode sequence

Method Details

Clone() public method

Clone sequence
public Clone ( ) : object
return object

Sequence() public method

Constructor
public Sequence ( ) : System
return System

Sequence() public method

Constructor.
public Sequence ( byte value ) : System
value byte Sequence data
return System

Set() public method

Set sequence data
public Set ( byte value ) : void
value byte Byte array containing BER encoded sequence data
return void

decode() public method

Decode sequence from the byte array. Returned offset value is advanced by the size of the sequence header.
public decode ( byte buffer, int offset ) : int
buffer byte Source data buffer
offset int Offset within the buffer to start parsing from
return int

encode() public method

BER encode sequence
public encode ( MutableByte buffer ) : void
buffer MutableByte Target buffer
return void

Property Details

_data protected property

data buffer
protected byte[] _data
return byte[]