Java.Nio.Buffer.Position Method
Sets the position of this buffer.

Syntax

[Android.Runtime.Register("position", "(I)Ljava/nio/Buffer;", "")]
public Buffer Position (int newPosition)

Parameters

newPosition
the new position, must be not negative and not greater than limit.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif newPosition is invalid.

Remarks

Sets the position of this buffer.

If the mark is set and it is greater than the new position, then it is cleared.

[Android Documentation]

Requirements

Namespace: Java.Nio
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1