Class MemoryHandle
public abstract class MemoryHandle : SafeHandle, IDisposable, IEquatable<MemoryHandle>
- Inheritance
-
MemoryHandle
- Implements
- Derived
- Inherited Members
Constructors
MemoryHandle(bool)
protected MemoryHandle(bool ownsHandle)
Parameters
ownsHandle
bool
Properties
IsInvalid
When overridden in a derived class, gets a value indicating whether the handle value is invalid.
public override sealed bool IsInvalid { get; }
Property Value
Methods
Equals(MemoryHandle?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(MemoryHandle? other)
Parameters
other
MemoryHandleAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetAlign()
public nuint GetAlign()
Returns
GetAllocator()
public IntPtr GetAllocator()
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetMaxsize()
public nuint GetMaxsize()
Returns
GetMiniObject()
public MiniObjectData GetMiniObject()
Returns
GetOffset()
public nuint GetOffset()
Returns
GetParent()
public IntPtr GetParent()
Returns
GetSize()
public nuint GetSize()
Returns
OwnedCopy()
public MemoryOwnedHandle OwnedCopy()
Returns
SetAlign(nuint)
public void SetAlign(nuint value)
Parameters
value
nuint
SetAllocator(IntPtr)
public void SetAllocator(IntPtr value)
Parameters
value
IntPtr
SetMaxsize(nuint)
public void SetMaxsize(nuint value)
Parameters
value
nuint
SetMiniObject(MiniObjectData)
public void SetMiniObject(MiniObjectData value)
Parameters
value
MiniObjectData
SetOffset(nuint)
public void SetOffset(nuint value)
Parameters
value
nuint
SetParent(IntPtr)
public void SetParent(IntPtr value)
Parameters
value
IntPtr
SetSize(nuint)
public void SetSize(nuint value)
Parameters
value
nuint
UnownedCopy()
public MemoryUnownedHandle UnownedCopy()