 | AutoResetStream.WriteAsync Method (Byte[], Int32, Int32, 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.
Namespace:
BionicCode.Utilities.Net.Standard.IO
Assembly:
BionicCode.Utilities.Net.Standard (in BionicCode.Utilities.Net.Standard.dll) Version: 1.0.4
Syntaxfunction WriteAsync(buffer, offset, count, cancellationToken);
Parameters
- buffer
- Type:System.Byte[]
The buffer to write data from. - offset
- Type: System.Int32
The zero-based byte offset in buffer from which to begin copying bytes to the stream. - count
- Type: System.Int32
The maximum number of bytes to write. - cancellationToken
- Type: System.Threading.CancellationToken
The token to monitor for cancellation requests. The default value is None.
Return Value
Type:
TaskA task that represents the asynchronous write operation.
Exceptions
See Also