C# Класс Transit.Framework.Redirection.RedirectionHelper

Helper class to deal with detours. This version is for Unity 5 x64 on Windows. We provide three different methods of detouring.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
PatchJumpTo ( IntPtr site, IntPtr target ) : RedirectCallsState

Primitive patching. Inserts a jump to 'target' at 'site'. Works even if both methods' callers have already been compiled.

RedirectCalls ( MethodInfo from, MethodInfo to ) : RedirectCallsState

Redirects all calls from method 'from' to method 'to'.

RedirectCalls ( RuntimeMethodHandle from, RuntimeMethodHandle to ) : RedirectCallsState
RevertJumpTo ( IntPtr site, RedirectCallsState state ) : void
RevertRedirect ( MethodInfo from, RedirectCallsState state ) : void

Описание методов

PatchJumpTo() публичный статический Метод

Primitive patching. Inserts a jump to 'target' at 'site'. Works even if both methods' callers have already been compiled.
public static PatchJumpTo ( IntPtr site, IntPtr target ) : RedirectCallsState
site System.IntPtr
target System.IntPtr
Результат RedirectCallsState

RedirectCalls() публичный статический Метод

Redirects all calls from method 'from' to method 'to'.
public static RedirectCalls ( MethodInfo from, MethodInfo to ) : RedirectCallsState
from System.Reflection.MethodInfo
to System.Reflection.MethodInfo
Результат RedirectCallsState

RedirectCalls() публичный статический Метод

public static RedirectCalls ( RuntimeMethodHandle from, RuntimeMethodHandle to ) : RedirectCallsState
from System.RuntimeMethodHandle
to System.RuntimeMethodHandle
Результат RedirectCallsState

RevertJumpTo() публичный статический Метод

public static RevertJumpTo ( IntPtr site, RedirectCallsState state ) : void
site System.IntPtr
state RedirectCallsState
Результат void

RevertRedirect() публичный статический Метод

public static RevertRedirect ( MethodInfo from, RedirectCallsState state ) : void
from System.Reflection.MethodInfo
state RedirectCallsState
Результат void