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.6.0.22
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 CancellationToken (Optional)
- The token to monitor for cancellation requests. The default value is None.
ValueTaskA task that represents the asynchronous write operation.