Class AllocatorPrivateOwnedHandle
public class AllocatorPrivateOwnedHandle : AllocatorPrivateHandle, IDisposable
- Inheritance
-
AllocatorPrivateOwnedHandle
- Implements
- Inherited Members
Constructors
AllocatorPrivateOwnedHandle(nint)
Creates a new instance of AllocatorPrivateOwnedHandle. Assumes that the given pointer is owned by the runtime.
public AllocatorPrivateOwnedHandle(nint ptr)
Parameters
ptr
nint
Methods
FromUnowned(nint)
Create a AllocatorPrivateOwnedHandle from a pointer that is assumed unowned.
public static AllocatorPrivateOwnedHandle FromUnowned(nint ptr)
Parameters
ptr
nintA pointer to a AllocatorPrivate which is not owned by the runtime.
Returns
- AllocatorPrivateOwnedHandle
A AllocatorPrivateOwnedHandle
ReleaseHandle()
When overridden in a derived class, executes the code required to free the handle.
protected override bool ReleaseHandle()