Wraps a partial byte array as a new ByteBuffer instance.

Namespace:  Kaazing.HTML5
Assembly:  Kaazing.Gateway (in Kaazing.Gateway.dll)

Syntax

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

Parameters

bytes
Type: array<System..::..Byte>[]()[][]
An array of bytes
offset
Type: System..::..Int32
Starting index in byte array
length
Type: System..::..Int32
Number of bytes to copy into the ByteBuffer

Return Value

See Also