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:
15
UnmangedMMU/Handles/Internal/IOwnedHandle.cs
Normal file
15
UnmangedMMU/Handles/Internal/IOwnedHandle.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using UnmanagedMMU.Allocators;
|
||||
|
||||
namespace UnmanagedMMU.Handles.Internal
|
||||
{
|
||||
/// <summary>
|
||||
/// Interface defining an interface for handle ownership semantics
|
||||
/// </summary>
|
||||
internal interface IOwnedHandle: IMemoryHandle
|
||||
{
|
||||
/// <summary>
|
||||
/// Returns the <see cref="IUnmanagedMemoryOwner"/> that created owns this <see cref="IOwnedHandle"/>
|
||||
/// </summary>
|
||||
IUnmanagedMemoryOwner GetOwner();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user