Table of Contents

Class PooledMemoryOwner<T>

Namespace
AiDotNet.Memory
Assembly
AiDotNet.dll

An IMemoryOwner implementation that returns memory to the pool when disposed.

public sealed class PooledMemoryOwner<T> : IMemoryOwner<T>, IDisposable

Type Parameters

T

The element type of the memory.

Inheritance
PooledMemoryOwner<T>
Implements
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()