WebSocketTransport.ReceiveAsync(Byte[], Int32, Int32) 方法

定义

调用以接收来自有线传输的数据。

public System.Threading.Tasks.Task<int> ReceiveAsync(byte[] buffer, int offset, int count);
abstract member ReceiveAsync : byte[] * int * int -> System.Threading.Tasks.Task<int>
override this.ReceiveAsync : byte[] * int * int -> System.Threading.Tasks.Task<int>
Public Function ReceiveAsync (buffer As Byte(), offset As Integer, count As Integer) As Task(Of Integer)

参数

buffer
Byte[]

要接收数据的缓冲区。

offset
Int32

缓冲区中要开始写入的位置。

count
Int32

要写入缓冲区的最大字节数。

返回

写入缓冲区的字节数。

实现

适用于