10 references to AllocAsPointer
Microsoft.AspNetCore.Server.HttpSys (10)
HttpSysListener.cs (4)
324
var knownHeaderInfo = allocator.
AllocAsPointer
<HTTP_RESPONSE_INFO>(1);
331
var header = allocator.
AllocAsPointer
<HTTP_MULTIPLE_KNOWN_HEADERS>(1);
337
var nativeHeaderValues = allocator.
AllocAsPointer
<HTTP_KNOWN_HEADER>(authChallenges.Count);
365
var pContentLength = allocator.
AllocAsPointer
<byte>(contentLengthLength + 1);
RequestProcessing\Response.cs (5)
541
var unknownAlloc = allocator.
AllocAsPointer
<HTTP_UNKNOWN_HEADER>(numUnknownHeaders);
572
var responseAlloc = allocator.
AllocAsPointer
<HTTP_RESPONSE_INFO>(numKnownMultiHeaders);
580
var header = allocator.
AllocAsPointer
<HTTP_MULTIPLE_KNOWN_HEADERS>(1);
586
var headerAlloc = allocator.
AllocAsPointer
<HTTP_KNOWN_HEADER>(headerValues.Count);
619
var unknownHeaders = allocator.
AllocAsPointer
<HTTP_UNKNOWN_HEADER>(trailerCount);
src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
73
return new Span<T>(
AllocAsPointer
<T>(count), count);