IReadableByteChannelExtensions.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.
Runs the channel's synchronous read operation in a task.
public static System.Threading.Tasks.Task<int> ReadAsync(this Java.Nio.Channels.IReadableByteChannel self, Java.Nio.ByteBuffer? dst);
static member ReadAsync : Java.Nio.Channels.IReadableByteChannel * Java.Nio.ByteBuffer -> System.Threading.Tasks.Task<int>
Parameters
- self
- IReadableByteChannel
The channel from which bytes are read.
- 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.