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