C# 클래스 NetworkSkins.Detour.RedirectionHelper

Helper class to deal with detours. This version is for Unity 5 x64 on Windows. We provide three different methods of detouring.
파일 보기 프로젝트 열기: boformer/NetworkSkins

공개 메소드들

메소드 설명
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