Share via


CharBuffer.Length Method

Definition

Returns the length of this character buffer.

[Android.Runtime.Register("length", "()I", "")]
public int Length ();
[<Android.Runtime.Register("length", "()I", "")>]
abstract member Length : unit -> int
override this.Length : unit -> int

Returns

The length of this character buffer

Implements

Attributes

Remarks

Returns the length of this character buffer.

When viewed as a character sequence, the length of a character buffer is simply the number of characters between the position (inclusive) and the limit (exclusive); that is, it is equivalent to remaining().

Java documentation for java.nio.CharBuffer.length().

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