Language

Reader.ReadAsync Method

Definition

Overloads

Name Description
ReadAsync()

Reads one character from this reader in a task.

ReadAsync(CharBuffer)

Reads characters into a character buffer in a task.

ReadAsync(Char[])

Reads characters into an array in a task.

ReadAsync(Char[], Int32, Int32)

Reads characters into an array range in a task.

ReadAsync()

Reads one character from this reader in a task.

public System.Threading.Tasks.Task<int> ReadAsync();
member this.ReadAsync : unit -> System.Threading.Tasks.Task<int>

Returns

A task whose result is the next character as an integer, or -1 at the end of the input.

Remarks

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

ReadAsync(CharBuffer)

Reads characters into a character buffer in a task.

public System.Threading.Tasks.Task<int> ReadAsync(Java.Nio.CharBuffer? target);
member this.ReadAsync : Java.Nio.CharBuffer -> System.Threading.Tasks.Task<int>

Parameters

target
CharBuffer

The character buffer that receives the data.

Returns

A task whose result is the character count, or -1 to report the end of the input.

Remarks

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

ReadAsync(Char[])

Reads characters into an array in a task.

public System.Threading.Tasks.Task<int> ReadAsync(char[]? cbuf);
member this.ReadAsync : char[] -> System.Threading.Tasks.Task<int>

Parameters

cbuf
Char[]

The array that receives the characters read.

Returns

A task whose result is the character count, or -1 to report the end of the input.

Remarks

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

ReadAsync(Char[], Int32, Int32)

Reads characters into an array range in a task.

public System.Threading.Tasks.Task<int> ReadAsync(char[]? cbuf, int off, int len);
member this.ReadAsync : char[] * int * int -> System.Threading.Tasks.Task<int>

Parameters

cbuf
Char[]

The array that receives the characters read.

off
Int32

The array index at which received characters are stored.

len
Int32

The maximum number of characters to read.

Returns

A task whose result is the character count, or -1 to report the end of the input.

Remarks

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