10 references to AllocAsPointer
Microsoft.AspNetCore.Server.HttpSys (10)
HttpSysListener.cs (4)
323
var knownHeaderInfo = allocator.
AllocAsPointer
<HTTP_RESPONSE_INFO>(1);
330
var header = allocator.
AllocAsPointer
<HTTP_MULTIPLE_KNOWN_HEADERS>(1);
336
var nativeHeaderValues = allocator.
AllocAsPointer
<HTTP_KNOWN_HEADER>(authChallenges.Count);
364
var pContentLength = allocator.
AllocAsPointer
<byte>(contentLengthLength + 1);
RequestProcessing\Response.cs (5)
540
var unknownAlloc = allocator.
AllocAsPointer
<HTTP_UNKNOWN_HEADER>(numUnknownHeaders);
571
var responseAlloc = allocator.
AllocAsPointer
<HTTP_RESPONSE_INFO>(numKnownMultiHeaders);
579
var header = allocator.
AllocAsPointer
<HTTP_MULTIPLE_KNOWN_HEADERS>(1);
585
var headerAlloc = allocator.
AllocAsPointer
<HTTP_KNOWN_HEADER>(headerValues.Count);
618
var unknownHeaders = allocator.
AllocAsPointer
<HTTP_UNKNOWN_HEADER>(trailerCount);
src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
73
return new Span<T>(
AllocAsPointer
<T>(count), count);