35 references to WriteUInt16BigEndian
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http2\Http2FrameWriter.cs (1)
928BinaryPrimitives.WriteUInt16BigEndian(destination, (ushort)setting.Parameter);
Microsoft.Extensions.ServiceDiscovery.Dns (8)
Resolver\DnsDataWriter.cs (1)
93BinaryPrimitives.WriteUInt16BigEndian(_buffer.Span.Slice(_position), value);
Resolver\DnsPrimitives.cs (6)
49BinaryPrimitives.WriteUInt16BigEndian(buffer, header.TransactionId); 50BinaryPrimitives.WriteUInt16BigEndian(buffer.Slice(2), (ushort)header.QueryFlags); 51BinaryPrimitives.WriteUInt16BigEndian(buffer.Slice(4), header.QueryCount); 52BinaryPrimitives.WriteUInt16BigEndian(buffer.Slice(6), header.AnswerCount); 53BinaryPrimitives.WriteUInt16BigEndian(buffer.Slice(8), header.AuthorityCount); 54BinaryPrimitives.WriteUInt16BigEndian(buffer.Slice(10), header.AdditionalRecordCount);
Resolver\DnsResolver.cs (1)
788BinaryPrimitives.WriteUInt16BigEndian(buffer, (ushort)length);
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
Resolver\LoopbackDnsServer.cs (1)
104BinaryPrimitives.WriteUInt16BigEndian(buffer.AsSpan(0, 2), (ushort)bytesWritten);
System.Formats.Cbor (2)
System\Formats\Cbor\Writer\CborWriter.Integer.cs (1)
102BinaryPrimitives.WriteUInt16BigEndian(_buffer.AsSpan(_offset), (ushort)value);
System\Formats\Cbor\Writer\CborWriter.Simple.netcoreapp.cs (1)
26BinaryPrimitives.WriteUInt16BigEndian(_buffer.AsSpan(_offset), PositiveQNaNBitsHalf);
System.Net.Http (4)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (2)
217BinaryPrimitives.WriteUInt16BigEndian(_outgoingBuffer.AvailableSpan, (ushort)SettingId.EnablePush); 221BinaryPrimitives.WriteUInt16BigEndian(_outgoingBuffer.AvailableSpan, (ushort)SettingId.InitialWindowSize);
System\Net\Http\SocketsHttpHandler\SocksHelper.cs (2)
183BinaryPrimitives.WriteUInt16BigEndian(buffer.AsSpan(addressLength + 4), (ushort)port); 228BinaryPrimitives.WriteUInt16BigEndian(buffer.AsSpan(2), (ushort)port);
System.Net.NameResolution (10)
System\Net\DnsMessageHeader.cs (6)
30BinaryPrimitives.WriteUInt16BigEndian(destination, Id); 31BinaryPrimitives.WriteUInt16BigEndian(destination[2..], EncodeFlagsWord()); 32BinaryPrimitives.WriteUInt16BigEndian(destination[4..], QuestionCount); 33BinaryPrimitives.WriteUInt16BigEndian(destination[6..], AnswerCount); 34BinaryPrimitives.WriteUInt16BigEndian(destination[8..], AuthorityCount); 35BinaryPrimitives.WriteUInt16BigEndian(destination[10..], AdditionalCount);
System\Net\DnsMessageWriter.cs (2)
51BinaryPrimitives.WriteUInt16BigEndian(_destination[_bytesWritten..], (ushort)type); 54BinaryPrimitives.WriteUInt16BigEndian(_destination[_bytesWritten..], (ushort)@class);
System\Net\DnsResolverPal.Managed.cs (2)
704BinaryPrimitives.WriteUInt16BigEndian(buffer, (ushort)query.Length); 741BinaryPrimitives.WriteUInt16BigEndian(buffer, (ushort)query.Length);
System.Net.Primitives (1)
System\Net\IPAddress.cs (1)
368BinaryPrimitives.WriteUInt16BigEndian(destination.Slice(i * 2), numbers[i]);
System.Net.WebSockets (2)
System\Net\WebSockets\ManagedWebSocket.cs (2)
751BinaryPrimitives.WriteUInt16BigEndian(sendBuffer.AsSpan(2), (ushort)payload.Length); 1577BinaryPrimitives.WriteUInt16BigEndian(buffer, (ushort)closeStatus);
System.Private.CoreLib (4)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Invariant.cs (4)
51BinaryPrimitives.WriteUInt16BigEndian(sortKey, (ushort)source[i]); 70BinaryPrimitives.WriteUInt16BigEndian(tmp, hr); 71BinaryPrimitives.WriteUInt16BigEndian(tmp.Slice(sizeof(ushort)), lr); 79BinaryPrimitives.WriteUInt16BigEndian(sortKey, (ushort)InvariantModeCasing.ToUpper(c));
System.Reflection.Metadata (1)
System\Reflection\Internal\Utilities\BlobUtilities.cs (1)
29BinaryPrimitives.WriteUInt16BigEndian(buffer.AsSpan(start), value);
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseHelpers.cs (1)
65BinaryPrimitives.WriteUInt16BigEndian(buffer.Slice(1), (ushort)value);