Share via


CharBuffer.SubSequence(Int32, Int32) Method

Definition

Creates a new character buffer that represents the specified subsequence of this buffer, relative to the current position.

public string? SubSequence (int start, int end);
member this.SubSequence : int * int -> string

Parameters

start
Int32

The index, relative to the current position, of the first character in the subsequence; must be non-negative and no larger than remaining()

end
Int32

The index, relative to the current position, of the character following the last character in the subsequence; must be no smaller than start and no larger than remaining()

Returns

The new character buffer

Remarks

Java documentation for java.nio.CharBuffer.subSequence(int, int).

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