Remove use of Dangerous Span calls for MemoryMarshal (#501)
This commit is contained in:
parent
e80e0803c6
commit
119dee607b
|
|
@ -583,7 +583,7 @@ namespace Microsoft.AspNetCore.Server.IISIntegration
|
||||||
{
|
{
|
||||||
var pDataChunks = stackalloc HttpApiTypes.HTTP_DATA_CHUNK[1];
|
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];
|
ref var chunk = ref pDataChunks[0];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue