Refactor MsQuic's native IP address types. (#53461)
authorTheodore Tsirpanis <12659251+teo-tsirpanis@users.noreply.github.com>
Mon, 31 May 2021 10:00:15 +0000 (13:00 +0300)
committerGitHub <noreply@github.com>
Mon, 31 May 2021 10:00:15 +0000 (12:00 +0200)
commit3846a9c4e5529ab1da1d58058f86502da85fead6
treed7091a32ef83c35e156aca4cfd59ad4d116f7969
parentd5cef92384ae43a503340417009c9b3c5713241a
Refactor MsQuic's native IP address types. (#53461)

* Use fixed buffers in MsQuic's native IP address types.
And handle them more efficiently when moving between them and .NET's IPAddresses.

* Update the names of all SOCKADDR_IN6's fields.

* Remove a redundant switch in MsQuicAddressHelpers.SetPort.
src/libraries/System.Net.Quic/src/System/Net/Quic/Implementations/MsQuic/Internal/MsQuicAddressHelpers.cs
src/libraries/System.Net.Quic/src/System/Net/Quic/Implementations/MsQuic/Interop/MsQuicNativeMethods.cs