net\System\Net\WebSockets\WebSocketBuffer.cs (4)
105Contract.Assert(internalBuffer.Count >= GetInternalBufferSize(receiveBufferSize, sendBufferSize, false),
114Contract.Assert(internalBuffer.Count >= GetInternalBufferSize(receiveBufferSize, sendBufferSize, true),
664int internalBufferSize = GetInternalBufferSize(receiveBufferSize, sendBufferSize, isServerBuffer);
675int minBufferSize = GetInternalBufferSize(receiveBufferSize, sendBufferSize, isServerBuffer);