Create a new ByteArrayView which wraps the portion of byte[] between offset and len from offset. NB: no data is copied when doing this

Namespace: StreamBase.SB
Assembly: StreamBase.SB.Client (in StreamBase.SB.Client.dll) Version: 7.7.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
public static ByteArrayView MakeView(
	byte[] bytes,
	int offset,
	int len
)
Public Shared Function MakeView ( _
	bytes As Byte(), _
	offset As Integer, _
	len As Integer _
) As ByteArrayView
public:
static ByteArrayView^ MakeView(
	array<unsigned char>^ bytes, 
	int offset, 
	int len
)

Parameters

bytes
array<Byte>[]()[][]
bytes the data to be viewed.
offset
Int32
the offset into the array when this view begins.
len
Int32
the length of this view.

Return Value

The new ByteArrayView, or null if bytes is null.

See Also