Use stackalloc directly into Span (dotnet/corefx#24212)
authorStephen Toub <stoub@microsoft.com>
Sun, 24 Sep 2017 13:45:07 +0000 (09:45 -0400)
committerGitHub <noreply@github.com>
Sun, 24 Sep 2017 13:45:07 +0000 (09:45 -0400)
commitfc2f8b26e9e0522f1f21f7f6d6f65299bcb63041
treeb4dbc629ca246bfe51a63b1149f510c5bc15533c
parent3f40e5581a2a0b553c4f06bee99c3e2f081df39b
Use stackalloc directly into Span (dotnet/corefx#24212)

* Use stackalloc directly into Span

We have a few places in corefx where we were stackalloc'ing into a temporary pointer and then creating a Span from that.  Now that we're using a C# compiler which supports stackalloc'ing directly into span, use that feature instead.

* Address PR feedback

Commit migrated from https://github.com/dotnet/corefx/commit/a7f6f470cb2c4cdaafdc3ad85e2520992a8db265
docs/libraries/building/windows-instructions.md
src/libraries/Common/src/System/Net/Internals/IPAddressExtensions.cs
src/libraries/Common/src/System/Net/SocketAddress.cs
src/libraries/System.Memory/ref/System.Memory.csproj
src/libraries/System.Memory/src/System.Memory.csproj
src/libraries/System.Net.Http/src/System/Net/Http/Managed/AuthenticationHelper.Digest.cs
src/libraries/System.Runtime.Serialization.Formatters/tests/System.Runtime.Serialization.Formatters.Tests.csproj
src/libraries/System.Runtime/ref/System.Runtime.csproj
src/libraries/System.Runtime/tests/System.Runtime.Tests.csproj