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