TransportStreamWriteAsync(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.
命名空间: TouchSocket.Sockets程序集: TouchSocket (在 TouchSocket.dll 中) 版本:4.0.0-beta.143+5fcca7a4e70968794985dc3793adc50531308be6
public override Task WriteAsync(
byte[] buffer,
int offset,
int count,
CancellationToken cancellationToken
)
Public Overrides Function WriteAsync (
buffer As Byte(),
offset As Integer,
count As Integer,
cancellationToken As CancellationToken
) As Task
abstract WriteAsync :
buffer : byte[] *
offset : int *
count : int *
cancellationToken : CancellationToken -> Task
override WriteAsync :
buffer : byte[] *
offset : int *
count : int *
cancellationToken : CancellationToken -> Task
- buffer Byte
- The buffer to write data from.
- offset Int32
- The zero-based byte offset in buffer from which to begin copying bytes to the stream.
- count Int32
- The maximum number of bytes to write.
- cancellationToken CancellationToken
- The token to monitor for cancellation requests. The default value is None.
TaskA task that represents the asynchronous write operation.