Jazyk

MappedByteBuffer.Position(Int32) Method

Definition

Sets this buffer's position.

[Android.Runtime.Register("position", "(I)Ljava/nio/Buffer;", "", ApiSince=35)]
public override sealed Java.Nio.Buffer? Position(int newPosition);
[<Android.Runtime.Register("position", "(I)Ljava/nio/Buffer;", "", ApiSince=35)>]
override this.Position : int -> Java.Nio.Buffer

Parameters

newPosition
Int32

The new position value; must be non-negative and no larger than the current limit

Returns

This buffer

Attributes

Remarks

Sets this buffer's position. If the mark is defined and larger than the new position then it is discarded.

Java documentation for java.nio.MappedByteBuffer.position(int).

Java reference for java.nio.MappedByteBuffer.position.

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