BufferedReadStream.WriteAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
WriteAsync(ReadOnlyMemory<Byte>, CancellationToken) | |
WriteAsync(Byte[], Int32, Int32, CancellationToken) |
WriteAsync(ReadOnlyMemory<Byte>, CancellationToken)
- Source:
- BufferedReadStream.cs
将字节的序列异步写入当前流,将该流中的当前位置向前移动写入的字节数,并监视取消请求。
public override System.Threading.Tasks.ValueTask WriteAsync (ReadOnlyMemory<byte> buffer, System.Threading.CancellationToken cancellationToken);
override this.WriteAsync : ReadOnlyMemory<byte> * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
Public Overrides Function WriteAsync (buffer As ReadOnlyMemory(Of Byte), cancellationToken As CancellationToken) As ValueTask
参数
- buffer
- ReadOnlyMemory<Byte>
- cancellationToken
- CancellationToken
返回
适用于
WriteAsync(Byte[], Int32, Int32, CancellationToken)
- Source:
- BufferedReadStream.cs
- Source:
- BufferedReadStream.cs
- Source:
- BufferedReadStream.cs
将字节的序列异步写入当前流,将该流中的当前位置向前移动写入的字节数,并监视取消请求。
public:
override System::Threading::Tasks::Task ^ WriteAsync(cli::array <System::Byte> ^ buffer, int offset, int count, System::Threading::CancellationToken cancellationToken);
public override System.Threading.Tasks.Task WriteAsync (byte[] buffer, int offset, int count, System.Threading.CancellationToken cancellationToken);
override this.WriteAsync : byte[] * int * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overrides Function WriteAsync (buffer As Byte(), offset As Integer, count As Integer, cancellationToken As CancellationToken) As Task
参数
- buffer
- Byte[]
- offset
- Int32
- count
- Int32
- cancellationToken
- CancellationToken