Megosztás a következőn keresztül:


LongBuffer.Wrap Method

Definition

Overloads

Wrap(Int64[])

Wraps a long array into a buffer.

Wrap(Int64[], Int32, Int32)

Wraps a long array into a buffer.

Wrap(Int64[])

Wraps a long array into a buffer.

[Android.Runtime.Register("wrap", "([J)Ljava/nio/LongBuffer;", "")]
public static Java.Nio.LongBuffer? Wrap (long[]? array);
[<Android.Runtime.Register("wrap", "([J)Ljava/nio/LongBuffer;", "")>]
static member Wrap : int64[] -> Java.Nio.LongBuffer

Parameters

array
Int64[]

The array that will back this buffer

Returns

The new long buffer

Attributes

Remarks

Wraps a long array into a buffer.

The new buffer will be backed by the given long 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.LongBuffer.wrap(long[]).

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(Int64[], Int32, Int32)

Wraps a long array into a buffer.

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

Parameters

array
Int64[]

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 long buffer

Attributes

Exceptions

if either start or longCount is invalid.

Remarks

Wraps a long array into a buffer.

The new buffer will be backed by the given long 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.LongBuffer.wrap(long[], 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