Class SerializedX64RuntimeFunctionsSection
- Namespace
- AsmResolver.PE.DotNet.ReadyToRun
- Assembly
- AsmResolver.PE.dll
Provides a lazy-initialized implementation of the RuntimeFunctionsSection class that reads entries from an x86 64-bit PE file.
public class SerializedX64RuntimeFunctionsSection : RuntimeFunctionsSection<X64RuntimeFunction>, IReadyToRunSection, ISegment, IOffsetProvider, IWritable
- Inheritance
-
SerializedX64RuntimeFunctionsSection
- Implements
- Inherited Members
Constructors
SerializedX64RuntimeFunctionsSection(PEReaderContext, ref BinaryStreamReader)
Reads a runtime function section from the provided input stream.
public SerializedX64RuntimeFunctionsSection(PEReaderContext context, ref BinaryStreamReader reader)
Parameters
context
PEReaderContextThe context in which the reader is situated in.
reader
BinaryStreamReaderThe input stream.
Properties
CanRead
Indicates whether the raw contents of the section can be read using a BinaryStreamReader.
public override bool CanRead { get; }
Property Value
Methods
CreateReader()
Creates a binary reader that reads the raw contents of the ReadyToRun section.
public override BinaryStreamReader CreateReader()
Returns
- BinaryStreamReader
The reader.
Exceptions
- InvalidOperationException
Occurs when CanRead is
false
.
GetEntries()
Obtains the entries stored in the section.
protected override IList<X64RuntimeFunction> GetEntries()
Returns
- IList<X64RuntimeFunction>
The entries.
Remarks
This method is called upon initialization of the Functions property.