Class SerializedPEFile
- Namespace
- AsmResolver.PE.File
- Assembly
- AsmResolver.PE.File.dll
Provides an implementation of a PE image that gets its data from an input stream.
public class SerializedPEFile : PEFile, ISegmentReferenceFactory, IOffsetConverter
- Inheritance
-
SerializedPEFile
- Implements
- Inherited Members
Constructors
SerializedPEFile(in BinaryStreamReader, PEMappingMode)
Reads a PE file from an input stream.
public SerializedPEFile(in BinaryStreamReader reader, PEMappingMode mode)
Parameters
reader
BinaryStreamReaderThe input stream.
mode
PEMappingModeIndicates how the input PE file is mapped.
Exceptions
- BadImageFormatException
Occurs when the input stream is malformed.
Methods
GetEofData()
Obtains any data appended to the end of the file (EoF).
protected override ISegment? GetEofData()
Returns
- ISegment
The extra data.
Remarks
This method is called upon the initialization of the EofData property.
GetSections()
Obtains the sections in the portable executable file.
protected override IList<PESection> GetSections()
Returns
Remarks
This method is called upon the initialization of the Sections property.