AllocableNativeHandle
Class AllocableNativeHandle
Namespace: SwiftlyS2.Shared.Natives
Assembly: SwiftlyS2.CS2.dll
public abstract class AllocableNativeHandle : SafeHandleZeroOrMinusOneIsInvalid, IDisposable, INativeHandleInheritance
Implements
Inherited Members
- SafeHandleZeroOrMinusOneIsInvalid.IsInvalid
- SafeHandle.handle
- SafeHandle.Close()
- SafeHandle.DangerousAddRef(ref bool)
- SafeHandle.DangerousGetHandle()
- SafeHandle.DangerousRelease()
- SafeHandle.Dispose()
- SafeHandle.Dispose(bool)
- SafeHandle.ReleaseHandle()
- SafeHandle.SetHandle(nint)
- SafeHandle.SetHandleAsInvalid()
- SafeHandle.IsClosed
- SafeHandle.IsInvalid
- object.Equals(object?)
- object.Equals(object?, object?)
- object.GetHashCode()
- object.GetType()
- object.MemberwiseClone()
- object.ReferenceEquals(object?, object?)
- object.ToString()
Constructors
AllocableNativeHandle(nint, bool)
protected AllocableNativeHandle(nint handle, bool ownsHandle)Parameters
Properties
Address
Dangerous method to get the memory address of the object
public nint Address { get; }Property Value
IsValid
Return whether a handle is valid. Still might be dangerous for some pointer that borrowed from game instead of allocated by ourselves.
public bool IsValid { get; }Property Value
Methods
Free()
protected abstract bool Free()Returns
ReleaseHandle()
When overridden in a derived class, executes the code required to free the handle.
protected override bool ReleaseHandle()Returns