Updated the SegmentedPool to allow for zeroing of allocations and for returning a pointer to allocated memory to allow for use in unsafe structs
This commit is contained in:
16
UnmangedMMU/Allocators/IUnmanagedMemoryOwner.cs
Normal file
16
UnmangedMMU/Allocators/IUnmanagedMemoryOwner.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user