2 instantiations of WebSocketBuffer
System (2)
net\System\Net\WebSockets\WebSocketBuffer.cs (2)
108
return new
WebSocketBuffer
(internalBuffer, receiveBufferSize, GetNativeSendBufferSize(sendBufferSize, false));
117
return new
WebSocketBuffer
(internalBuffer, receiveBufferSize, sendBufferSize);
31 references to WebSocketBuffer
System (31)
net\System\Net\HttpListenerContext.cs (3)
171
WebSocketHelpers.ValidateOptions(subProtocol, receiveBufferSize,
WebSocketBuffer
.MinSendBufferSize, keepAliveInterval);
173
ArraySegment<byte> internalBuffer =
WebSocketBuffer
.CreateInternalBufferArraySegment(receiveBufferSize,
WebSocketBuffer
.MinSendBufferSize, true);
net\System\Net\WebSockets\ClientWebSocket.cs (1)
530
WebSocketBuffer
.Validate(buffer.Count, receiveBufferSize, sendBufferSize, false);
net\System\Net\WebSockets\InternalClientWebSocket.cs (1)
28
WebSocketBuffer
.CreateClientBuffer(internalBuffer, receiveBufferSize, sendBufferSize))
net\System\Net\WebSockets\ServerWebSocket.cs (1)
31
WebSocketBuffer
.CreateServerBuffer(internalBuffer, receiveBufferSize))
net\System\Net\WebSockets\WebSocket.cs (8)
52
return
WebSocketBuffer
.CreateInternalBufferArraySegment(receiveBufferSize, sendBufferSize, false);
57
WebSocketHelpers.ValidateBufferSizes(receiveBufferSize,
WebSocketBuffer
.MinSendBufferSize);
59
return
WebSocketBuffer
.CreateInternalBufferArraySegment(receiveBufferSize,
WebSocketBuffer
.MinSendBufferSize, true);
79
WebSocketBuffer
.Validate(internalBuffer.Count, receiveBufferSize, sendBufferSize, false);
102
WebSocketHelpers.ValidateOptions(subProtocol, receiveBufferSize,
WebSocketBuffer
.MinSendBufferSize, keepAliveInterval);
104
WebSocketBuffer
.Validate(internalBuffer.Count, receiveBufferSize,
WebSocketBuffer
.MinSendBufferSize, true);
net\System\Net\WebSockets\WebSocketBase.cs (4)
51
private readonly
WebSocketBuffer
m_InternalBuffer;
73
WebSocketBuffer
internalBuffer)
175
internal
WebSocketBuffer
InternalBuffer
891
new ArraySegment<byte>(new byte[
WebSocketBuffer
.MinReceiveBufferSize]);
net\System\Net\WebSockets\WebSocketBuffer.cs (2)
103
internal static
WebSocketBuffer
CreateClientBuffer(ArraySegment<byte> internalBuffer, int receiveBufferSize, int sendBufferSize)
111
internal static
WebSocketBuffer
CreateServerBuffer(ArraySegment<byte> internalBuffer, int receiveBufferSize)
net\System\Net\WebSockets\WebSocketHelpers.cs (11)
60
WebSocketHelpers.ValidateOptions(subProtocol, receiveBufferSize,
WebSocketBuffer
.MinSendBufferSize, keepAliveInterval);
62
WebSocketBuffer
.Validate(internalBuffer.Count, receiveBufferSize,
WebSocketBuffer
.MinSendBufferSize, true);
472
if (receiveBufferSize <
WebSocketBuffer
.MinReceiveBufferSize)
475
SR.GetString(SR.net_WebSockets_ArgumentOutOfRange_TooSmall,
WebSocketBuffer
.MinReceiveBufferSize));
478
if (sendBufferSize <
WebSocketBuffer
.MinSendBufferSize)
481
SR.GetString(SR.net_WebSockets_ArgumentOutOfRange_TooSmall,
WebSocketBuffer
.MinSendBufferSize));
484
if (receiveBufferSize >
WebSocketBuffer
.MaxBufferSize)
490
WebSocketBuffer
.MaxBufferSize));
493
if (sendBufferSize >
WebSocketBuffer
.MaxBufferSize)
499
WebSocketBuffer
.MaxBufferSize));