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
uintThe 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
RuntimeFunctionIndex
Gets or sets the index to the RUNTIME_FUNCTION
the method starts at.
public uint RuntimeFunctionIndex { get; set; }
Property Value
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
BinaryStreamReaderThe 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
RelocationParametersThe 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
BinaryStreamWriterThe output stream to write the data to.