Java.Nio.Buffer.Limit Method
Sets the limit of this buffer.

Syntax

[Android.Runtime.Register("limit", "(I)Ljava/nio/Buffer;", "")]
public Buffer Limit (int newLimit)

Parameters

newLimit
the new limit, must not be negative and not greater than capacity.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif newLimit is invalid.

Remarks

Sets the limit of this buffer.

If the current position in the buffer is in excess of newLimit then, on returning from this call, it will have been adjusted to be equivalent to newLimit. If the mark is set and is greater than the new limit, 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