Table of Contents

Class MethodEntryPoint

Namespace
AsmResolver.PE.DotNet.ReadyToRun
Assembly
AsmResolver.PE.dll

Provides information about a native entry point for a managed method that was compiled ahead-of-time.

public class MethodEntryPoint : SegmentBase, ISegment, IOffsetProvider, IWritable
Inheritance
MethodEntryPoint
Implements
Inherited Members

Constructors

MethodEntryPoint(uint)

Constructs a new entry point for a method.

public MethodEntryPoint(uint functionIndex)

Parameters

functionIndex uint

The index of the RUNTIME_FUNCTION this method starts at.

Properties

Fixups

Gets a collection of fixups that need to be applied before the method can be executed natively.

public IList<MethodFixup> Fixups { get; }

Property Value

IList<MethodFixup>

RuntimeFunctionIndex

Gets or sets the index to the RUNTIME_FUNCTION the method starts at.

public uint RuntimeFunctionIndex { get; set; }

Property Value

uint

Methods

FromReader(ref BinaryStreamReader)

Reads a single method entry point metadata segment from the provided input stream.

public static MethodEntryPoint FromReader(ref BinaryStreamReader reader)

Parameters

reader BinaryStreamReader

The input stream.

Returns

MethodEntryPoint

The read entry point metadata

GetPhysicalSize()

Computes the number of bytes that the structure contains.

public override uint GetPhysicalSize()

Returns

uint

The number of bytes.

UpdateOffsets(in RelocationParameters)

Assigns a new file and virtual offset to the segment and all its sub-components.

public override void UpdateOffsets(in RelocationParameters parameters)

Parameters

parameters RelocationParameters

The parameters containing the new offset information for the segment.

Write(BinaryStreamWriter)

Serializes the structure to an output stream.

public override void Write(BinaryStreamWriter writer)

Parameters

writer BinaryStreamWriter

The output stream to write the data to.