An abstract base class that is used to replace the implementation of Memory<T>.
generic <typename T> public ref class MemoryManager abstract : System::Buffers::IMemoryOwner<T>, System::Buffers::IPinnable
public abstract class MemoryManager<T> : System.Buffers.IMemoryOwner<T>, System.Buffers.IPinnable
type MemoryManager<'T> = class interface IMemoryOwner<'T> interface IDisposable interface IPinnable
Public MustInherit Class MemoryManager(Of T) Implements IMemoryOwner(Of T), IPinnable
The type of items in the memory buffer managed by this memory manager.
MemoryManager<T> class is used to extend the knowledge of types that Memory<T> is able to represent. For example, you can derive from
MemoryManager<T> to allow Memory<T> to be backed by a SafeHandle.
MemoryManager<T> class is intended for advanced scenarios. Most developers do not need to use it.
Initializes a new instance of the MemoryManager<T> class.
Gets the memory block handled by this MemoryManager<T>.
Returns a memory buffer consisting of a specified number of elements from the memory managed by the current memory manager.
Returns a memory buffer consisting of a specified number of elements starting at a specified offset from the memory managed by the current memory manager.
Releases all resources used by the current memory manager.
Determines whether the specified object is equal to the current object.(Inherited from Object)
Serves as the default hash function.(Inherited from Object)
Returns a memory span that wraps the underlying memory buffer.
Gets the Type of the current instance.(Inherited from Object)
Creates a shallow copy of the current Object.(Inherited from Object)
Returns a handle to the memory that has been pinned and whose address can be taken.
Returns a string that represents the current object.(Inherited from Object)
Returns an array segment.
Unpins pinned memory so that the garbage collector is free to move it.
Explicit Interface Implementations
Releases all resources used by the memory manager.