7 references to MaskLength
System.Net.WebSockets (7)
System\Net\WebSockets\ManagedWebSocket.cs (7)
674
headerLength = maskOffset.GetValueOrDefault() +
MaskLength
;
768
RandomNumberGenerator.Fill(buffer.AsSpan(offset,
MaskLength
));
815
if (_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>
1653
Debug.Assert(maskOffsetIndex <
MaskLength
, $"Unexpected {nameof(maskOffsetIndex)}: {maskOffsetIndex}");
1654
Debug.Assert(mask.Length >=
MaskLength
+ maskOffset, $"Unexpected inputs: {mask.Length}, {maskOffset}");