17 overrides of Rent
InMemory.FunctionalTests (2)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
47public override IMemoryOwner<byte> Rent(int size = AnySize)
src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (1)
49public override IMemoryOwner<byte> Rent(int size = AnySize)
Microsoft.AspNetCore.Server.HttpSys (2)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
47public override IMemoryOwner<byte> Rent(int size = AnySize)
src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (1)
49public override IMemoryOwner<byte> Rent(int size = AnySize)
Microsoft.AspNetCore.Server.IIS (2)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
47public override IMemoryOwner<byte> Rent(int size = AnySize)
src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (1)
49public override IMemoryOwner<byte> Rent(int size = AnySize)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
47public override IMemoryOwner<byte> Rent(int size = AnySize)
src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (1)
49public override IMemoryOwner<byte> Rent(int size = AnySize)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
47public override IMemoryOwner<byte> Rent(int size = AnySize)
src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (1)
49public override IMemoryOwner<byte> Rent(int size = AnySize)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (2)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
47public override IMemoryOwner<byte> Rent(int size = AnySize)
src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (1)
49public override IMemoryOwner<byte> Rent(int size = AnySize)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
47public override IMemoryOwner<byte> Rent(int size = AnySize)
src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (1)
49public override IMemoryOwner<byte> Rent(int size = AnySize)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (2)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
47public override IMemoryOwner<byte> Rent(int size = AnySize)
src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (1)
49public override IMemoryOwner<byte> Rent(int size = AnySize)
System.Memory (1)
System\Buffers\ArrayMemoryPool.cs (1)
12public sealed override unsafe IMemoryOwner<T> Rent(int minimumBufferSize = -1)
40 references to Rent
InMemory.FunctionalTests (1)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
56var diagnosticPoolBlock = new DiagnosticPoolBlock(this, _pool.Rent(size));
Microsoft.AspNetCore.Components.Server (1)
BlazorPack\SequenceOfT.cs (1)
239segment.Assign(this.memoryPool.Rent(minBufferSize.Value));
Microsoft.AspNetCore.Server.HttpSys (3)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
56var diagnosticPoolBlock = new DiagnosticPoolBlock(this, _pool.Rent(size));
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (2)
58_backingBuffer = memoryPool.Rent(newSize); 63_backingBuffer = MemoryPool<byte>.Shared.Rent(newSize);
Microsoft.AspNetCore.Server.IIS (3)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
56var diagnosticPoolBlock = new DiagnosticPoolBlock(this, _pool.Rent(size));
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (2)
58_backingBuffer = memoryPool.Rent(newSize); 63_backingBuffer = MemoryPool<byte>.Shared.Rent(newSize);
Microsoft.AspNetCore.Server.Kestrel.Core (6)
Internal\Http\Http1OutputProducer.cs (3)
702_fakeMemoryOwner = _memoryPool.Rent(minSize); 756var owner = _memoryPool.Rent(sizeHint); 764var owner = MemoryPool<byte>.Shared.Rent(sizeHint);
Internal\Http2\Http2OutputProducer.cs (1)
696_fakeMemoryOwner = _memoryPool.Rent(minSize);
Internal\Http3\Http3OutputProducer.cs (1)
262_fakeMemoryOwner = _memoryPool.Rent(minSize);
Internal\Infrastructure\PipeWriterHelpers\ConcurrentPipeWriter.cs (1)
362newSegment.SetOwnedMemory(_pool.Rent(GetSegmentSize(minSize, _pool.MaxBufferSize)));
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (17)
DiagnosticMemoryPoolTests.cs (10)
29var block = memoryPool.Rent(); 40var block = memoryPool.Rent(); 52var block = memoryPool.Rent(); 64var block = memoryPool.Rent(); 77var block = memoryPool.Rent(); 99var block = memoryPool.Rent(); 112var block = memoryPool.Rent(); 126var block = memoryPool.Rent(); 141var block = memoryPool.Rent(); 165var block = memoryPool.Rent();
Http2\Http2FrameWriterTests.cs (1)
30dirtyMemoryPool.Setup(pool => pool.Rent(It.IsAny<int>())).Returns(memoryBlock.Object);
Http3\Http3FrameWriterTests.cs (1)
34dirtyMemoryPool.Setup(pool => pool.Rent(It.IsAny<int>())).Returns(memoryBlock.Object);
MemoryPoolTests.cs (3)
25var block = memoryPool.Rent(); 34var block = memoryPool.Rent(); 46var exception = Assert.Throws<ObjectDisposedException>(() => memoryPool.Rent());
PinnedBlockMemoryPoolTests.cs (1)
25var block = memoryPool.Rent();
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
56var diagnosticPoolBlock = new DiagnosticPoolBlock(this, _pool.Rent(size));
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
56var diagnosticPoolBlock = new DiagnosticPoolBlock(this, _pool.Rent(size));
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
56var diagnosticPoolBlock = new DiagnosticPoolBlock(this, _pool.Rent(size));
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
56var diagnosticPoolBlock = new DiagnosticPoolBlock(this, _pool.Rent(size));
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
56var diagnosticPoolBlock = new DiagnosticPoolBlock(this, _pool.Rent(size));
Microsoft.AspNetCore.Shared.Tests (2)
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (2)
58_backingBuffer = memoryPool.Rent(newSize); 63_backingBuffer = MemoryPool<byte>.Shared.Rent(newSize);
System.IO.Pipelines (3)
System\IO\Pipelines\Pipe.cs (1)
247segment.SetOwnedMemory(pool!.Rent(GetSegmentSize(sizeHint, maxSize)));
System\IO\Pipelines\StreamPipeReader.cs (1)
522nextSegment.SetOwnedMemory(_options.Pool.Rent(sizeToRequest));
System\IO\Pipelines\StreamPipeWriter.cs (1)
161newSegment.SetOwnedMemory(_pool!.Rent(GetSegmentSize(sizeHint, maxSize)));