Allocates a new ByteBuffer instance

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

Syntax

Visual Basic
Public Shared Function Allocate ( _
	capacity As Integer _
) As ByteBuffer
C#
public static ByteBuffer Allocate(
	int capacity
)
Visual C++
public:
static ByteBuffer^ Allocate(
	int capacity
)

Parameters

capacity
Type: System..::..Int32
Initial capacity

Return Value

The created ByteBuffer

See Also