Show / Hide Table of Contents

    Interface IDetourNativePlatform

    Namespace: MonoMod.RuntimeDetour
    Assembly: MonoMod.RuntimeDetour.dll
    Syntax
    public interface IDetourNativePlatform

    Methods

    Apply(NativeDetourData)

    Declaration
    void Apply(NativeDetourData detour)
    Parameters
    Type Name Description
    NativeDetourData detour

    Copy(IntPtr, IntPtr, Byte)

    Declaration
    void Copy(IntPtr src, IntPtr dst, byte type)
    Parameters
    Type Name Description
    System.IntPtr src
    System.IntPtr dst
    System.Byte type

    Create(IntPtr, IntPtr, Nullable<Byte>)

    Declaration
    NativeDetourData Create(IntPtr from, IntPtr to, Nullable<byte> type = null)
    Parameters
    Type Name Description
    System.IntPtr from
    System.IntPtr to
    System.Nullable<System.Byte> type
    Returns
    Type Description
    NativeDetourData

    FlushICache(IntPtr, UInt32)

    Declaration
    void FlushICache(IntPtr src, uint size)
    Parameters
    Type Name Description
    System.IntPtr src
    System.UInt32 size

    Free(NativeDetourData)

    Declaration
    void Free(NativeDetourData detour)
    Parameters
    Type Name Description
    NativeDetourData detour

    MakeExecutable(IntPtr, UInt32)

    Declaration
    void MakeExecutable(IntPtr src, uint size)
    Parameters
    Type Name Description
    System.IntPtr src
    System.UInt32 size

    MakeWritable(IntPtr, UInt32)

    Declaration
    void MakeWritable(IntPtr src, uint size)
    Parameters
    Type Name Description
    System.IntPtr src
    System.UInt32 size

    MemAlloc(UInt32)

    Declaration
    IntPtr MemAlloc(uint size)
    Parameters
    Type Name Description
    System.UInt32 size
    Returns
    Type Description
    System.IntPtr

    MemFree(IntPtr)

    Declaration
    void MemFree(IntPtr ptr)
    Parameters
    Type Name Description
    System.IntPtr ptr

    Extension Methods

    DetourHelper.MakeWritable(IDetourNativePlatform, NativeDetourData)
    DetourHelper.MakeExecutable(IDetourNativePlatform, NativeDetourData)
    DetourHelper.FlushICache(IDetourNativePlatform, NativeDetourData)
    Back to top Yet another C# modding swiss army knife.