Class PooledMemoryOwner<T>
An IMemoryOwner implementation that returns memory to the pool when disposed.
public sealed class PooledMemoryOwner<T> : IMemoryOwner<T>, IDisposable
Type Parameters
TThe element type of the memory.
- Inheritance
-
PooledMemoryOwner<T>
- Implements
-
IMemoryOwner<T>
- Inherited Members
Properties
Memory
Gets the Memory wrapped by this owner.
public Memory<T> Memory { get; }
Property Value
- Memory<T>
Methods
Dispose()
Returns the memory to the pool and releases the reference.
public void Dispose()