ProxyStreamWriteAsync(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.
Пространство имён:
Tessa.Platform.IO
Сборка:
Tessa (в Tessa.dll) Версия: 3.5.0.19
Синтаксис public override ValueTask WriteAsync(
ReadOnlyMemory<byte> buffer,
CancellationToken cancellationToken = default
)
Public Overrides Function WriteAsync (
buffer As ReadOnlyMemory(Of Byte),
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask
public:
virtual ValueTask WriteAsync(
ReadOnlyMemory<unsigned char> buffer,
CancellationToken cancellationToken = CancellationToken()
) override
abstract WriteAsync :
buffer : ReadOnlyMemory<byte> *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask
override WriteAsync :
buffer : ReadOnlyMemory<byte> *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask
Параметры
- buffer
- Тип: ReadOnlyMemoryByte
The region of memory to write data from. - cancellationToken (Optional)
- Тип: System.ThreadingCancellationToken
The token to monitor for cancellation requests. The default value is None.
Возвращаемое значение
Тип:
ValueTaskA task that represents the asynchronous write operation.
См. также