Interface INativeDetour

Namespace: BepInEx.Unity.IL2CPP.Hook
Assembly: BepInEx.Unity.IL2CPP.dll
Syntax
public interface INativeDetour

Properties

DetourMethodPtr

Declaration
nint DetourMethodPtr { get; }
Property Value
Type Description
System.IntPtr

OriginalMethodPtr

Declaration
nint OriginalMethodPtr { get; }
Property Value
Type Description
System.IntPtr

TrampolinePtr

Declaration
nint TrampolinePtr { get; }
Property Value
Type Description
System.IntPtr

Methods

Create<T>(IntPtr, T)

Declaration
static INativeDetour Create<T>(nint original, T target)
    where T : Delegate
Parameters
Type Name Description
System.IntPtr original
T target
Returns
Type Description
INativeDetour
Type Parameters
Name Description
T

CreateAndApply<T>(IntPtr, T, out T)

Declaration
static INativeDetour CreateAndApply<T>(nint from, T to, out T original)
    where T : Delegate
Parameters
Type Name Description
System.IntPtr from
T to
T original
Returns
Type Description
INativeDetour
Type Parameters
Name Description
T