Remove use of Dangerous Span calls for MemoryMarshal (#501)

This commit is contained in:
Justin Kotalik 2018-01-02 13:59:49 -08:00 committed by GitHub
parent e80e0803c6
commit 119dee607b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -583,7 +583,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration
{
var pDataChunks = stackalloc HttpApiTypes.HTTP_DATA_CHUNK[1];
fixed (byte* pBuffer = &buffer.First.Span.DangerousGetPinnableReference())
fixed (byte* pBuffer = &MemoryMarshal.GetReference(buffer.First.Span))
{
ref var chunk = ref pDataChunks[0];