DoubleBuffer.Allocate(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Allocates a new double buffer.
[Android.Runtime.Register("allocate", "(I)Ljava/nio/DoubleBuffer;", "")]
public static Java.Nio.DoubleBuffer? Allocate (int capacity);
[<Android.Runtime.Register("allocate", "(I)Ljava/nio/DoubleBuffer;", "")>]
static member Allocate : int -> Java.Nio.DoubleBuffer
Parameters
- capacity
- Int32
The new buffer's capacity, in doubles
Returns
The new double buffer
- Attributes
Exceptions
if capacity
is less than zero.
Remarks
Allocates a new double buffer.
The new buffer's position will be zero, its limit will be its capacity, its mark will be undefined, and each of its elements will be initialized to zero. It will have a #array backing array
, and its #arrayOffset array offset
will be zero.
Java documentation for java.nio.DoubleBuffer.allocate(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.