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