Język

IWritableByteChannelExtensions.WriteAsync Method

Definition

Runs the channel's synchronous write operation in a task.

public static System.Threading.Tasks.Task<int> WriteAsync(this Java.Nio.Channels.IWritableByteChannel self, Java.Nio.ByteBuffer? src);
static member WriteAsync : Java.Nio.Channels.IWritableByteChannel * Java.Nio.ByteBuffer -> System.Threading.Tasks.Task<int>

Parameters

self
IWritableByteChannel

The channel to which bytes are written.

src
ByteBuffer

The source buffer. Its position advances by the number of bytes written; its limit is unchanged.

Returns

A task whose result is the number of bytes written, possibly zero. Some channels can write fewer than the buffer's remaining bytes.

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