WebSocket.CreateClientBuffer(Int32, Int32) 方法

定義

建立要與這個 WebSocket 執行個體搭配使用的用戶端緩衝區。Create client buffers to use with this WebSocket instance.

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

用戶端接收緩衝區的大小 (以位元組為單位)。The size, in bytes, of the client receive buffer.

sendBufferSize
Int32

傳送緩衝區的大小 (以位元組為單位)。The size, in bytes, of the send buffer.

傳回

具有用戶端緩衝區的陣列。An array with the client buffers.

適用於