System::Buffers::MemoryManager class
MemoryManager class
Provides an abstraction for managing memory blocks.
template<typename T>class MemoryManager : public System::IDisposable
| Parameter | Description |
|---|
| T | The type of elements in the memory. |
Methods
| Method | Description |
|---|
| Dispose() override | Disposes the memory manager and releases any resources it holds. |
| virtual get_Memory() | Returns a Memory. |
| virtual GetSpan() | Returns a span wrapping the underlying memory. |
| virtual Pin(int32_t) | Returns a handle to the memory that has been pinned so its address can be taken. |
| virtual Unpin() | Indicates the memory can be moved again; unpins previously pinned memory. |
See Also