swiftlys2/docs/api/ai/
API Reference Memory

IUnmanagedMemory

Interface
Namespace: SwiftlyS2.Shared.Memory · Assembly: SwiftlyS2.CS2.dll
public interface IUnmanagedMemory
View source

Properties

Address

The address of the unmanaged pointer.

nint Address { get; }
Property Value

Methods

AddHook(MidHookDelegate)

Hook a native function at the specified address with a managed callback. The callback receives a context structure that allows reading and modifying CPU registers.

Guid AddHook(MidHookDelegate callback)
Parameters
  • callbackMidHookDelegateThe callback to call when the code reaches that address.
Returns

RemoveHook(Guid)

Unhook a hook by its id.

void RemoveHook(Guid id)
Parameters
  • idGuidThe id of the hook to unhook.