Interface INativeDetour
Namespace: BepInEx.Unity.IL2CPP.Hook
Assembly: BepInEx.Unity.IL2CPP.dll
Syntax
public interface INativeDetour
Properties
Declaration
nint DetourMethodPtr { get; }
Property Value
Type | Description |
---|---|
System.IntPtr |
Declaration
nint OriginalMethodPtr { get; }
Property Value
Type | Description |
---|---|
System.IntPtr |
Declaration
nint TrampolinePtr { get; }
Property Value
Type | Description |
---|---|
System.IntPtr |
Methods
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 |
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 |