LongBuffer.ArrayOffset 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.
Returns the offset within this buffer's backing array of the first element of the buffer (optional operation).
[Android.Runtime.Register("arrayOffset", "()I", "")]
public override sealed int ArrayOffset ();
[<Android.Runtime.Register("arrayOffset", "()I", "")>]
override this.ArrayOffset : unit -> int
Returns
The offset within this buffer's array of the first element of the buffer
- Attributes
Remarks
Returns the offset within this buffer's backing array of the first element of the buffer (optional operation).
If this buffer is backed by an array then buffer position p corresponds to array index p + arrayOffset()
.
Invoke the #hasArray hasArray
method before invoking this method in order to ensure that this buffer has an accessible backing array.
Java documentation for java.nio.LongBuffer.arrayOffset()
.
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.