Table of Contents

Class MemoryPool<T>

Namespace
System.Buffers
Assembly
System.Memory.dll
public abstract class MemoryPool<T> : IDisposable

Type Parameters

T
Inheritance
MemoryPool<T>
Implements
Inherited Members
Extension Methods

Constructors

MemoryPool()

protected MemoryPool()

Properties

MaxBufferSize

public abstract int MaxBufferSize { get; }

Property Value

int

Shared

public static MemoryPool<T> Shared { get; }

Property Value

MemoryPool<T>

Methods

Dispose()

public void Dispose()

Dispose(bool)

protected abstract void Dispose(bool disposing)

Parameters

disposing bool

Rent(int)

public abstract IMemoryOwner<T> Rent(int minBufferSize = -1)

Parameters

minBufferSize int

Returns

IMemoryOwner<T>