Class MemoryPool<T>
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
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
disposingbool
Rent(int)
public abstract IMemoryOwner<T> Rent(int minBufferSize = -1)
Parameters
minBufferSizeint
Returns
- IMemoryOwner<T>