Improved SegmentedPool with the introduction of handles and alignment (#1)

This commit is contained in:
Jim
2026-03-20 17:33:30 +00:00
parent dfbdf905fe
commit 8bf297a244
15 changed files with 2788 additions and 674 deletions

View File

@@ -0,0 +1,16 @@
using UnmanagedMMU.Handles.Internal;
namespace UnmanagedMMU.Allocators
{
/// <summary>
/// Interface that defines a mechanisim for the owner of an unmanaged memory allocation
/// </summary>
internal interface IUnmanagedMemoryOwner
{
/// <summary>
/// Frees the allocated memory represented by <paramref name="handle"/> back to the owning <see cref="IUnmanagedMemoryOwner"/> instance
/// </summary>
void Free(IOwnedHandle handle);
}
}