Language

IObjectInputExtensions.ReadAsync Method

Definition

Overloads

Name Description
ReadAsync(IObjectInput)

Reads one input byte in a task.

ReadAsync(IObjectInput, Byte[])

Reads input bytes into a buffer in a task.

ReadAsync(IObjectInput, Byte[], Int32, Int32)

Reads input bytes into a buffer range in a task.

ReadAsync(IObjectInput)

Reads one input byte in a task.

public static System.Threading.Tasks.Task<int> ReadAsync(this Java.IO.IObjectInput self);
static member ReadAsync : Java.IO.IObjectInput -> System.Threading.Tasks.Task<int>

Parameters

self
IObjectInput

The input to read from.

Returns

A task whose result is the byte as an integer, 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(IObjectInput, Byte[])

Reads input bytes into a buffer in a task.

public static System.Threading.Tasks.Task<int> ReadAsync(this Java.IO.IObjectInput self, byte[]? b);
static member ReadAsync : Java.IO.IObjectInput * byte[] -> System.Threading.Tasks.Task<int>

Parameters

self
IObjectInput

The input from which bytes are read.

b
Byte[]

The buffer that receives the bytes.

Returns

A task whose result is the byte 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(IObjectInput, Byte[], Int32, Int32)

Reads input bytes into a buffer range in a task.

public static System.Threading.Tasks.Task<int> ReadAsync(this Java.IO.IObjectInput self, byte[]? b, int off, int len);
static member ReadAsync : Java.IO.IObjectInput * byte[] * int * int -> System.Threading.Tasks.Task<int>

Parameters

self
IObjectInput

The input from which bytes are read.

b
Byte[]

The buffer that receives the bytes.

off
Int32

The buffer index at which received bytes are stored.

len
Int32

The maximum number of bytes to read.

Returns

A task whose result is the byte 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