Get sub-array

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

Syntax

C#
public MutableByte Get(
	int position,
	int length
)
Visual Basic
Public Function Get ( _
	position As Integer, _
	length As Integer _
) As MutableByte
Visual C++
public:
MutableByte^ Get(
	int position, 
	int length
)

Parameters

position
Type: System..::..Int32
Start of the sub-array. Zero based.
length
Type: System..::..Int32
Count of bytes to copy

Return Value

MutableByte array containing the sub-array.

Exceptions

ExceptionCondition
System..::..OverflowExceptionThrown when position starts before the beginning of the array (position is less then 0) or position + length is greater then the length of the byte array contained in the object.

See Also