WebSocket.CreateClientBuffer(Int32, Int32) 方法

定义

创建用于此 WebSocket 实例的客户端缓冲区。

public:
 static ArraySegment<System::Byte> CreateClientBuffer(int receiveBufferSize, int sendBufferSize);
public static ArraySegment<byte> CreateClientBuffer (int receiveBufferSize, int sendBufferSize);
static member CreateClientBuffer : int * int -> ArraySegment<byte>
Public Shared Function CreateClientBuffer (receiveBufferSize As Integer, sendBufferSize As Integer) As ArraySegment(Of Byte)

参数

receiveBufferSize
Int32

客户端接收缓冲区的大小(以字节为单位)。

sendBufferSize
Int32

发送缓冲区的大小(以字节为单位)。

返回

一个包含客户端缓冲区的数组。

适用于