CreateClientBuffer() public static method

public static CreateClientBuffer ( int receiveBufferSize, int sendBufferSize ) : System.ArraySegment
receiveBufferSize int
sendBufferSize int
return System.ArraySegment
Beispiel #1
0
 internal ArraySegment <byte> GetOrCreateBuffer()
 {
     if (!buffer.HasValue)
     {
         buffer = WebSocket.CreateClientBuffer(receiveBufferSize, sendBufferSize);
     }
     return(buffer.Value);
 }