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