SeekableStreamWriteAsync(ReadOnlyMemoryByte, CancellationToken) - метод

Asynchronously writes a sequence of bytes to the current stream, advances the current position within this stream by the number of bytes written, and monitors cancellation requests.

Definition

Пространство имён: Tessa.Platform.IO
Сборка: Tessa (в Tessa.dll) Версия: 3.6.0.22
C#
public override ValueTask WriteAsync(
	ReadOnlyMemory<byte> buffer,
	CancellationToken cancellationToken = default
)

Параметры

buffer  ReadOnlyMemoryByte
The region of memory to write data from.
cancellationToken  CancellationToken  (Optional)
The token to monitor for cancellation requests. The default value is None.

Возвращаемое значение

ValueTask
A task that represents the asynchronous write operation.

См. также