21 lines
602 B
C#
21 lines
602 B
C#
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();
|
|
|
|
/// <summary>
|
|
/// Returns the memory alignment for the <see cref="IOwnedHandle"/>
|
|
/// </summary>
|
|
nuint Alignment { get; }
|
|
}
|
|
}
|