6 references to MaxMessageHeaderLength
System.Net.WebSockets (6)
System\Net\WebSockets\ManagedWebSocket.cs (6)
657AllocateSendBuffer(payloadLength + MaxMessageHeaderLength); 720Debug.Assert(sendBuffer.Length >= MaxMessageHeaderLength, $"Expected {nameof(sendBuffer)} to be at least {MaxMessageHeaderLength}, got {sendBuffer.Length}"); 815if (_receiveBufferCount < (_isServer ? MaxMessageHeaderLength : (MaxMessageHeaderLength - MaskLength))) 1449byte[] closeBuffer = ArrayPool<byte>.Shared.Rent(MaxMessageHeaderLength + MaxControlPayloadLength);