Share via


DoubleBuffer.Wrap Method

Definition

Overloads

Wrap(Double[])

Wraps a double array into a buffer.

Wrap(Double[], Int32, Int32)

Wraps a double array into a buffer.

Wrap(Double[])

Wraps a double array into a buffer.

[Android.Runtime.Register("wrap", "([D)Ljava/nio/DoubleBuffer;", "")]
public static Java.Nio.DoubleBuffer? Wrap (double[]? array);
[<Android.Runtime.Register("wrap", "([D)Ljava/nio/DoubleBuffer;", "")>]
static member Wrap : double[] -> Java.Nio.DoubleBuffer

Parameters

array
Double[]

The array that will back this buffer

Returns

The new double buffer

Attributes

Remarks

Wraps a double array into a buffer.

The new buffer will be backed by the given double array; that is, modifications to the buffer will cause the array to be modified and vice versa. The new buffer's capacity and limit will be array.length, its position will be zero, and its mark will be undefined. Its #array backing array will be the given array, and its #arrayOffset array offset> will be zero.

Java documentation for java.nio.DoubleBuffer.wrap(double[]).

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.

Applies to

Wrap(Double[], Int32, Int32)

Wraps a double array into a buffer.

[Android.Runtime.Register("wrap", "([DII)Ljava/nio/DoubleBuffer;", "")]
public static Java.Nio.DoubleBuffer? Wrap (double[]? array, int offset, int length);
[<Android.Runtime.Register("wrap", "([DII)Ljava/nio/DoubleBuffer;", "")>]
static member Wrap : double[] * int * int -> Java.Nio.DoubleBuffer

Parameters

array
Double[]

The array that will back the new buffer

offset
Int32

The offset of the subarray to be used; must be non-negative and no larger than array.length. The new buffer's position will be set to this value.

length
Int32

The length of the subarray to be used; must be non-negative and no larger than array.length - offset. The new buffer's limit will be set to offset + length.

Returns

The new double buffer

Attributes

Exceptions

if either start or doubleCount is invalid.

Remarks

Wraps a double array into a buffer.

The new buffer will be backed by the given double array; that is, modifications to the buffer will cause the array to be modified and vice versa. The new buffer's capacity will be array.length, its position will be offset, its limit will be offset + length, and its mark will be undefined. Its #array backing array will be the given array, and its #arrayOffset array offset will be zero.

Java documentation for java.nio.DoubleBuffer.wrap(double[], int, 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.

Applies to