ByteBuffer.GetLong(Int32) Method

Definition

Absolute get method for reading a long value.

[Android.Runtime.Register("getLong", "(I)J", "GetGetLong_IHandler")]
public abstract long GetLong (int index);
[<Android.Runtime.Register("getLong", "(I)J", "GetGetLong_IHandler")>]
abstract member GetLong : int -> int64

Parameters

index
Int32

The index from which the bytes will be read

Returns

The long value at the given index

Attributes

Exceptions

if index is invalid.

Remarks

Absolute get method for reading a long value.

Reads eight bytes at the given index, composing them into a long value according to the current byte order.

Java documentation for java.nio.ByteBuffer.getLong(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