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