Taal

MappedByteBuffer.Limit(Int32) Method

Definition

Sets this buffer's limit.

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

Parameters

newLimit
Int32

The new limit value; must be non-negative and no larger than this buffer's capacity

Returns

This buffer

Attributes

Remarks

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

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

Java reference for java.nio.MappedByteBuffer.limit.

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