Java.Nio.ByteBuffer.Allocate Method
Creates a byte buffer based on a newly allocated byte array.

Syntax

[Android.Runtime.Register("allocate", "(I)Ljava/nio/ByteBuffer;", "")]
public static ByteBuffer 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 .

Remarks

Creates a byte buffer based on a newly allocated byte 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