IDataOutputExtensions.WriteAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| WriteAsync(IDataOutput, Byte[]) |
Writes the byte array to the output in a task. |
| WriteAsync(IDataOutput, Int32) |
Writes one byte to the output in a task. |
| WriteAsync(IDataOutput, Byte[], Int32, Int32) |
Writes a byte-array range to the output in a task. |
WriteAsync(IDataOutput, Byte[])
Writes the byte array to the output in a task.
public static System.Threading.Tasks.Task WriteAsync(this Java.IO.IDataOutput self, byte[]? b);
static member WriteAsync : Java.IO.IDataOutput * byte[] -> System.Threading.Tasks.Task
Parameters
- self
- IDataOutput
The data output to write to.
- b
- Byte[]
The bytes to write.
Returns
A task that reports completion or failure of the write operation.
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
WriteAsync(IDataOutput, Int32)
Writes one byte to the output in a task.
public static System.Threading.Tasks.Task WriteAsync(this Java.IO.IDataOutput self, int b);
static member WriteAsync : Java.IO.IDataOutput * int -> System.Threading.Tasks.Task
Parameters
- self
- IDataOutput
The data output to write to.
- b
- Int32
The value whose low eight bits form the byte to write.
Returns
A task that reports completion or failure of the write operation.
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
WriteAsync(IDataOutput, Byte[], Int32, Int32)
Writes a byte-array range to the output in a task.
public static System.Threading.Tasks.Task WriteAsync(this Java.IO.IDataOutput self, byte[]? b, int off, int len);
static member WriteAsync : Java.IO.IDataOutput * byte[] * int * int -> System.Threading.Tasks.Task
Parameters
- self
- IDataOutput
The data output to write to.
- b
- Byte[]
The array that contains the bytes to write.
- off
- Int32
The index of the first byte to write.
- len
- Int32
The number of bytes to write.
Returns
A task that reports completion or failure of the write operation.
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.