5 references to s_textEncoding
System.Net.WebSockets (5)
System\Net\WebSockets\ManagedWebSocket.cs (5)
1117closeStatusDescription = s_textEncoding.GetString(_receiveBuffer.Span.Slice(_receiveBufferOffset + 2, (int)header.PayloadLength - 2)); 1532count += s_textEncoding.GetByteCount(closeStatusDescription); 1534int encodedLength = s_textEncoding.GetBytes(closeStatusDescription, 0, closeStatusDescription.Length, buffer, 2); 1535Debug.Assert(count - 2 == encodedLength, $"{nameof(s_textEncoding.GetByteCount)} and {nameof(s_textEncoding.GetBytes)} encoded count didn't match");