6 types derived from MemoryPool
Microsoft.AspNetCore.Server.Kestrel.Core (2)
src\aspnetcore\src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
12internal sealed class DiagnosticMemoryPool : MemoryPool<byte>
src\aspnetcore\src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (1)
16internal sealed class PinnedBlockMemoryPool : MemoryPool<byte>, IThreadPoolWorkItem
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
src\aspnetcore\src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
12internal sealed class DiagnosticMemoryPool : MemoryPool<byte>
src\aspnetcore\src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (1)
16internal sealed class PinnedBlockMemoryPool : MemoryPool<byte>, IThreadPoolWorkItem
System.Memory (2)
System\Buffers\ArrayMemoryPool.ArrayMemoryPoolBuffer.cs (1)
6internal sealed partial class ArrayMemoryPool<T> : MemoryPool<T>
System\Buffers\ArrayMemoryPool.cs (1)
8internal sealed partial class ArrayMemoryPool<T> : MemoryPool<T>
75 references to MemoryPool
Microsoft.AspNetCore.Components.Server (4)
BlazorPack\SequenceOfT.cs (4)
27private readonly MemoryPool<T> memoryPool; 48public Sequence(MemoryPool<T> memoryPool) 80/// The <see cref="MemoryPool{T}"/> in use may itself have a minimum array length as well, 302/// Gets the backing array, when using an <see cref="ArrayPool{T}"/> instead of a <see cref="MemoryPool{T}"/>.
Microsoft.AspNetCore.Connections.Abstractions (4)
Features\IMemoryPoolFeature.cs (3)
9/// The <see cref="MemoryPool{T}"/> used by the connection. 14/// Gets the <see cref="MemoryPool{T}"/> used by the connection. 16MemoryPool<byte> MemoryPool { get; }
IMemoryPoolFactory.cs (1)
18MemoryPool<T> Create(MemoryPoolOptions? options = null);
Microsoft.AspNetCore.Server.Kestrel.Core (33)
Internal\BaseHttpConnectionContext.cs (2)
21MemoryPool<byte> memoryPool, 44public MemoryPool<byte> MemoryPool { get; }
Internal\Http\Http1Connection.cs (1)
104public MemoryPool<byte> MemoryPool { get; }
Internal\Http\Http1OutputProducer.cs (4)
29private readonly MemoryPool<byte> _memoryPool; 75MemoryPool<byte> memoryPool, 761else if (sizeHint <= MemoryPool<byte>.Shared.MaxBufferSize) 765var owner = MemoryPool<byte>.Shared.Rent(sizeHint);
Internal\Http2\Http2FrameWriter.cs (1)
117MemoryPool<byte> memoryPool,
Internal\Http2\Http2OutputProducer.cs (2)
29private readonly MemoryPool<byte> _memoryPool; 762private static Pipe CreateDataPipe(MemoryPool<byte> pool, bool scheduleInline)
Internal\Http2\Http2StreamContext.cs (1)
22MemoryPool<byte> memoryPool,
Internal\Http3\Http3FrameWriter.cs (2)
38private readonly MemoryPool<byte> _memoryPool; 59public Http3FrameWriter(ConnectionContext connectionContext, ITimeoutControl timeoutControl, MinDataRate? minResponseDataRate, MemoryPool<byte> memoryPool, KestrelTrace log, IStreamIdFeature streamIdFeature, Http3PeerSettings clientPeerSettings, IHttp3Stream http3Stream)
Internal\Http3\Http3OutputProducer.cs (3)
22private readonly MemoryPool<byte> _memoryPool; 38MemoryPool<byte> pool, 475private static Pipe CreateDataPipe(MemoryPool<byte> pool)
Internal\Http3\Http3StreamContext.cs (1)
22MemoryPool<byte> memoryPool,
Internal\HttpConnectionContext.cs (1)
22MemoryPool<byte> memoryPool,
Internal\HttpMultiplexedConnectionContext.cs (1)
21MemoryPool<byte> memoryPool,
Internal\Infrastructure\PipeWriterHelpers\ConcurrentPipeWriter.cs (2)
26private readonly MemoryPool<byte> _pool; 53public ConcurrentPipeWriter(PipeWriter innerPipeWriter, MemoryPool<byte> pool, Lock sync)
Internal\PinnedBlockMemoryPoolFactory.cs (1)
27public MemoryPool<byte> Create(MemoryPoolOptions? options = null)
Middleware\HttpConnectionMiddleware.cs (1)
43memoryPoolFeature?.MemoryPool ?? System.Buffers.MemoryPool<byte>.Shared,
Middleware\HttpMultiplexedConnectionMiddleware.cs (1)
42memoryPoolFeature?.MemoryPool ?? System.Buffers.MemoryPool<byte>.Shared,
Middleware\HttpsConnectionMiddleware.cs (2)
155context.Features.Get<IMemoryPoolFeature>()?.MemoryPool ?? MemoryPool<byte>.Shared); 449private SslDuplexPipe CreateSslDuplexPipe(IDuplexPipe transport, MemoryPool<byte> memoryPool)
src\aspnetcore\src\Shared\Buffers.MemoryPool\DefaultMemoryPoolFactory.cs (1)
47public MemoryPool<byte> Create(MemoryPoolOptions? options = null)
src\aspnetcore\src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (2)
14private readonly MemoryPool<byte> _pool; 35public DiagnosticMemoryPool(MemoryPool<byte> pool, bool allowLateReturn = false, bool rentTracking = false)
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolFactory.cs (2)
13public static MemoryPool<byte> Create(string? owner = null, IMeterFactory? meterFactory = null) 22public static MemoryPool<byte> CreatePinnedBlockMemoryPool(string? owner = null, IMeterFactory? meterFactory = null)
src\aspnetcore\src\Shared\ServerInfrastructure\MemoryPoolExtensions.cs (2)
18public static int GetMinimumSegmentSize(this MemoryPool<byte> pool) 28public static int GetMinimumAllocSize(this MemoryPool<byte> pool)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (10)
Internal\QuicStreamContext.cs (1)
73public override MemoryPool<byte> MemoryPool { get; }
src\aspnetcore\src\Servers\Kestrel\shared\TransportConnection.cs (1)
38public virtual MemoryPool<byte> MemoryPool { get; } = default!;
src\aspnetcore\src\Servers\Kestrel\shared\TransportConnection.FeatureCollection.cs (1)
20MemoryPool<byte> IMemoryPoolFeature.MemoryPool => MemoryPool;
src\aspnetcore\src\Servers\Kestrel\shared\TransportMultiplexedConnection.cs (1)
32public virtual MemoryPool<byte> MemoryPool { get; } = default!;
src\aspnetcore\src\Servers\Kestrel\shared\TransportMultiplexedConnection.FeatureCollection.cs (1)
17MemoryPool<byte> IMemoryPoolFeature.MemoryPool => MemoryPool;
src\aspnetcore\src\Shared\Buffers.MemoryPool\DefaultMemoryPoolFactory.cs (1)
47public MemoryPool<byte> Create(MemoryPoolOptions? options = null)
src\aspnetcore\src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (2)
14private readonly MemoryPool<byte> _pool; 35public DiagnosticMemoryPool(MemoryPool<byte> pool, bool allowLateReturn = false, bool rentTracking = false)
src\aspnetcore\src\Shared\Buffers.MemoryPool\MemoryPoolFactory.cs (2)
13public static MemoryPool<byte> Create(string? owner = null, IMeterFactory? meterFactory = null) 22public static MemoryPool<byte> CreatePinnedBlockMemoryPool(string? owner = null, IMeterFactory? meterFactory = null)
mscorlib (1)
mscorlib.cs (1)
40[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Buffers.MemoryPool<>))]
netstandard (1)
netstandard.cs (1)
68[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Buffers.MemoryPool<>))]
System.IO.Pipelines (21)
System\IO\Pipelines\Pipe.cs (1)
235MemoryPool<byte>? pool = null;
System\IO\Pipelines\PipeOptions.cs (6)
27MemoryPool<byte>? pool = null, 79Pool = pool ?? MemoryPool<byte>.Shared; 80IsDefaultSharedMemoryPool = Pool == MemoryPool<byte>.Shared; 112/// <summary>Gets the <see cref="System.Buffers.MemoryPool{T}" /> object used for buffer management.</summary> 114public MemoryPool<byte> Pool { get; } 117/// Returns true if Pool is <see cref="MemoryPool{Byte}"/>.Shared
System\IO\Pipelines\StreamPipeReader.cs (1)
60private MemoryPool<byte> Pool => _options.Pool;
System\IO\Pipelines\StreamPipeReaderOptions.cs (7)
22public StreamPipeReaderOptions(MemoryPool<byte>? pool, int bufferSize, int minimumReadSize, bool leaveOpen) : 34public StreamPipeReaderOptions(MemoryPool<byte>? pool = null, int bufferSize = -1, int minimumReadSize = -1, bool leaveOpen = false, bool useZeroByteReads = false) 36Pool = pool ?? MemoryPool<byte>.Shared; 38IsDefaultSharedMemoryPool = Pool == MemoryPool<byte>.Shared; 67/// <summary>Gets the <see cref="System.Buffers.MemoryPool{T}" /> to use when allocating memory.</summary> 69public MemoryPool<byte> Pool { get; } 80/// Returns true if Pool is <see cref="MemoryPool{Byte}"/>.Shared
System\IO\Pipelines\StreamPipeWriter.cs (2)
25private readonly MemoryPool<byte>? _pool; 59_pool = options.Pool == MemoryPool<byte>.Shared ? null : options.Pool;
System\IO\Pipelines\StreamPipeWriterOptions.cs (4)
19public StreamPipeWriterOptions(MemoryPool<byte>? pool = null, int minimumBufferSize = -1, bool leaveOpen = false) 21Pool = pool ?? MemoryPool<byte>.Shared; 35/// <summary>Gets the <see cref="System.Buffers.MemoryPool{T}" /> to use when allocating memory.</summary> 37public MemoryPool<byte> Pool { get; }
System.Memory (1)
System\Buffers\MemoryPool.cs (1)
18public static MemoryPool<T> Shared => s_shared;