7 references to MaskLength
System.Net.WebSockets (7)
System\Net\WebSockets\ManagedWebSocket.cs (7)
674headerLength = maskOffset.GetValueOrDefault() + MaskLength; 768RandomNumberGenerator.Fill(buffer.AsSpan(offset, MaskLength)); 815if (_receiveBufferCount < (_isServer ? MaxMessageHeaderLength : (MaxMessageHeaderLength - MaskLength))) 845(_isServer ? MaskLength : 0) + 1648/// <param name="maskOffset">The offset into <paramref name="mask"/> of the mask to apply of length <see cref="MaskLength"/>.</param> 1653Debug.Assert(maskOffsetIndex < MaskLength, $"Unexpected {nameof(maskOffsetIndex)}: {maskOffsetIndex}"); 1654Debug.Assert(mask.Length >= MaskLength + maskOffset, $"Unexpected inputs: {mask.Length}, {maskOffset}");