RandomAccessFile.ReadFullyAsync 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 |
|---|---|
| ReadFullyAsync(Byte[]) |
Fills the byte array from the file in a task. |
| ReadFullyAsync(Byte[], Int32, Int32) |
Fills a buffer range from the file in a task. |
ReadFullyAsync(Byte[])
Fills the byte array from the file in a task.
public System.Threading.Tasks.Task ReadFullyAsync(byte[]? b);
member this.ReadFullyAsync : byte[] -> System.Threading.Tasks.Task
Parameters
- b
- Byte[]
The buffer to fill with bytes from the file.
Returns
A task that completes successfully only after every requested byte is read.
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
ReadFullyAsync(Byte[], Int32, Int32)
Fills a buffer range from the file in a task.
public System.Threading.Tasks.Task ReadFullyAsync(byte[]? b, int off, int len);
member this.ReadFullyAsync : byte[] * int * int -> System.Threading.Tasks.Task
Parameters
- b
- Byte[]
The buffer that receives the bytes.
- off
- Int32
The index of the first buffer position to fill.
- len
- Int32
The number of bytes to read.
Returns
A task that completes successfully only after every requested byte is read.
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.