TlsStream.WriteAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Tls.dll (version 7.0.9083)
WriteAsync(Byte[], Int32, Int32, CancellationToken)
Asynchronously writes data into this TlsStream.
Declaration
public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | buffer | An array of bytes to be written. |
Int32 | offset | The zero-based byte offset in the buffer at which to begin writing bytes to the stream. |
Int32 | count | The number of bytes to be taken from the buffer. |
CancellationToken | cancellationToken | Cancellation token. |
Returns
Type | Description |
---|---|
Task | A Task that represents the asynchronous operation. |