Class SerializedPEImage
- Namespace
- AsmResolver.PE
- Assembly
- AsmResolver.PE.dll
Provides an implementation of a PE image that gets its data from a PE file.
public class SerializedPEImage : PEImage
- Inheritance
-
SerializedPEImage
- Inherited Members
- Extension Methods
Constructors
SerializedPEImage(PEFile, PEReaderParameters)
Opens a PE image from a file.
public SerializedPEImage(PEFile peFile, PEReaderParameters readerParameters)
Parameters
peFile
PEFileThe file to base the image from.
readerParameters
PEReaderParametersThe parameters to use while reading the PE image.
Properties
PEFile
Gets the underlying PE file (when available).
public override PEFile PEFile { get; }
Property Value
Remarks
When this property is null
, the image is a new image that is not yet assembled.
Accessing and using this object file is considered an unsafe operation. Making any changes to this object while also using the PE image object can have unwanted side effects.
ReaderContext
Gets the reading parameters used for reading the PE image.
public PEReaderContext ReaderContext { get; }
Property Value
Methods
GetCertificates()
Obtains the data directory containing the attribute certificates table of the executable.
protected override CertificateCollection GetCertificates()
Returns
- CertificateCollection
The attribute certificates.
Remarks
This method is called upon initialization of the Certificates property.
GetDebugData()
Obtains the debug data entries in the PE.
protected override IList<DebugDataEntry> GetDebugData()
Returns
- IList<DebugDataEntry>
The debug data entries.
Remarks
This method is called upon initialization of the DebugData property.
GetDotNetDirectory()
Obtains the data directory containing the CLR 2.0 header of a .NET binary.
protected override DotNetDirectory? GetDotNetDirectory()
Returns
- DotNetDirectory
The data directory.
Remarks
This method is called upon initialization of the DotNetDirectory property.
GetExceptions()
Obtains the contents of the exceptions data directory in the PE.
protected override IExceptionDirectory? GetExceptions()
Returns
- IExceptionDirectory
The entries in the exceptions directory.
Remarks
This method is called upon initialization of the Exceptions property.
GetExports()
Obtains the list of symbols that were exported from the PE.
protected override ExportDirectory? GetExports()
Returns
- ExportDirectory
The exported symbols.
Remarks
This method is called upon initialization of the Exports property.
GetImports()
Obtains the list of modules that were imported into the PE.
protected override IList<ImportedModule> GetImports()
Returns
- IList<ImportedModule>
The imported modules.
Remarks
This method is called upon initialization of the Imports property.
GetRelocations()
Obtains the base relocation blocks in the PE.
protected override IList<BaseRelocation> GetRelocations()
Returns
- IList<BaseRelocation>
The base relocation blocks.
Remarks
This method is called upon initialization of the Relocations property.
GetResources()
Obtains the root resource directory in the PE.
protected override ResourceDirectory? GetResources()
Returns
- ResourceDirectory
The root resource directory.
Remarks
This method is called upon initialization of the Resources property.
GetTlsDirectory()
Obtains the data directory containing the Thread-Local Storage (TLS) data.
protected override TlsDirectory? GetTlsDirectory()
Returns
- TlsDirectory
The data directory.
Remarks
This method is called upon initialization of the TlsDirectory property.