Table of Contents

Method ComputeDetourInfo

Namespace
MonoMod.Core.Platforms
Assembly
MonoMod.Core.dll

ComputeDetourInfo(nint, nint, int)

Computes a NativeDetourInfo which can be used to patch the instructions at from to jump to target.
NativeDetourInfo ComputeDetourInfo(nint from, nint target, int maxSizeHint = -1)

Parameters

from nint
The address to detour from.
target nint
The address to detour to.
maxSizeHint int
The maximum amount of readable/writable memory at from, or -1. This is to be used as a hint, and may be ignored.

Returns

NativeDetourInfo
The computed NativeDetourInfo.

Remarks

See Also