Pipe.SourceChannel.ReadAsync 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 |
|---|---|
| ReadAsync(ByteBuffer) |
Runs a synchronous read from this pipe's source channel in a task. |
| ReadAsync(ByteBuffer[]) |
Runs a synchronous scattering read from this pipe into all supplied buffers in a task. |
| ReadAsync(ByteBuffer[], Int32, Int32) |
Runs a synchronous scattering read from this pipe into the selected buffers in a task. |
ReadAsync(ByteBuffer)
Runs a synchronous read from this pipe's source channel in a task.
public System.Threading.Tasks.Task<int> ReadAsync(Java.Nio.ByteBuffer? dst);
member this.ReadAsync : Java.Nio.ByteBuffer -> System.Threading.Tasks.Task<int>
Parameters
- dst
- ByteBuffer
The destination buffer. Its position advances by the number of bytes read; its limit is unchanged.
Returns
A task whose result is the number of bytes read, possibly zero, or -1 at the end of the stream. The read need not fill the buffer.
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(ByteBuffer[])
Runs a synchronous scattering read from this pipe into all supplied buffers in a task.
public System.Threading.Tasks.Task<long> ReadAsync(Java.Nio.ByteBuffer[]? dsts);
member this.ReadAsync : Java.Nio.ByteBuffer[] -> System.Threading.Tasks.Task<int64>
Parameters
- dsts
- ByteBuffer[]
The destination buffers in array order. Each buffer's position advances by the bytes placed in it; buffer limits are unchanged.
Returns
A task whose result is the total number of bytes read, possibly zero, or -1 at the end of the stream. The read need not fill all buffers.
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(ByteBuffer[], Int32, Int32)
Runs a synchronous scattering read from this pipe into the selected buffers in a task.
public System.Threading.Tasks.Task<long> ReadAsync(Java.Nio.ByteBuffer[]? dsts, int offset, int length);
member this.ReadAsync : Java.Nio.ByteBuffer[] * int * int -> System.Threading.Tasks.Task<int64>
Parameters
- dsts
- ByteBuffer[]
The destination buffer array. Selected buffers are filled in array order, advancing their positions without changing their limits.
- offset
- Int32
The index of the first destination buffer, from zero through the array length.
- length
- Int32
The number of destination buffers to use, from zero through the array length minus offset.
Returns
A task whose result is the total number of bytes read, possibly zero, or -1 at the end of the stream. The read need not fill all selected buffers.
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.