Class RuntimeFunctionsSection<TFunction>
- Namespace
- AsmResolver.PE.DotNet.ReadyToRun
- Assembly
- AsmResolver.PE.dll
Represents a platform-specific ReadyToRun section containing RUNTIME_FUNCTION structures describing all code blocks in the image with pointers to their unwind info.
public abstract class RuntimeFunctionsSection<TFunction> : RuntimeFunctionsSection, IReadyToRunSection, ISegment, IOffsetProvider, IWritable where TFunction : IRuntimeFunction, IWritable
Type Parameters
TFunction
The type of function to store in the section.
- Inheritance
-
RuntimeFunctionsSection<TFunction>
- Implements
- Derived
- Inherited Members
Properties
Functions
Gets a collection of functions stored in the section.
public IList<TFunction> Functions { get; }
Property Value
- IList<TFunction>
Methods
GetEntries()
Obtains the entries stored in the section.
protected virtual IList<TFunction> GetEntries()
Returns
- IList<TFunction>
The entries.
Remarks
This method is called upon initialization of the Functions property.
GetFunctions()
Obtains the collection of functions stored in the section.
public override sealed IEnumerable<IRuntimeFunction> GetFunctions()
Returns
- IEnumerable<IRuntimeFunction>
The functions.
GetPhysicalSize()
Computes the number of bytes that the structure contains.
public override uint GetPhysicalSize()
Returns
- uint
The number of bytes.
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.