Java.Nio.ShortBuffer.Allocate Method
Creates a short buffer based on a newly allocated short array.

Syntax

[Android.Runtime.Register("allocate", "(I)Ljava/nio/ShortBuffer;", "")]
public static ShortBuffer Allocate (int capacity)

Parameters

capacity
the capacity of the new buffer.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif capacity is less than zero.

Remarks

Creates a short buffer based on a newly allocated short array.

[Android Documentation]

Requirements

Namespace: Java.Nio
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1