Table of Contents

Interface IArchitecture

Namespace
MonoMod.Core.Platforms
Assembly
MonoMod.Core.dll
Represents a host architecture.
public interface IArchitecture

Properties

AltEntryFactory
Gets the IAltEntryFactory for this architecture.
Features
Gets the set of ArchitectureFeatures that this instance supports. Some members may only be available with certain feature flags set.
KnownMethodThunks
Gets a BytePatternCollection containing known method thunks for this architecture. These are used to locate the real method entry point.
Target
Gets the ArchitectureKind that this instance represents.

Methods

ComputeDetourInfo(nint, nint, int)
Computes a NativeDetourInfo which can be used to patch the instructions at from to jump to target.
ComputeRetargetInfo(NativeDetourInfo, nint, int)
Computes a NativeDetourInfo which can be used to retarget detour to instead jump to target.
CreateNativeVtableProxyStubs(nint, int)
Populates a native vtable with proxy stubs to an object with the same vtable shape.
CreateSpecialEntryStub(nint, nint)
Creates an architecture-specific special entry stub, that passes an extra argument not in the normal calling convention.
GetDetourBytes(NativeDetourInfo, Span<byte>, out IDisposable?)
Gets the actual bytes making up the specified detour.
GetRetargetBytes(NativeDetourInfo, NativeDetourInfo, Span<byte>, out IDisposable?, out bool, out bool)
Gets the actual bytes to apply to perform the retarget.