Table of Contents

Method RegisterValidIndirectCallTargets

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

RegisterValidIndirectCallTargets(void*, nint, ReadOnlySpan<nint>)

Registers a memory region's valid indirect call targets.
void RegisterValidIndirectCallTargets(void* memoryRegionStart, nint memoryRegionLength, ReadOnlySpan<nint> validTargetsInMemoryRegion)

Parameters

memoryRegionStart void*
A pointer to the start of the memory region to register.
memoryRegionLength nint
The length of the memory region to register.
validTargetsInMemoryRegion ReadOnlySpan<nint>
A set of TargetAlignmentRequirement-aligned valid entrypoints, as offsets relative to memoryRegionStart.

Remarks

Callers are responsible for ensuring that provided entrypoints are aligned according to TargetAlignmentRequirement.