Class CompilerIdentifierSection
- Namespace
- AsmResolver.PE.DotNet.ReadyToRun
- Assembly
- AsmResolver.PE.dll
Represents a section in a ReadyToRun .NET portable executable that contains an identifier of the compiler that was used to generate the image.
public class CompilerIdentifierSection : SegmentBase, IReadyToRunSection, ISegment, IOffsetProvider, IWritable
- Inheritance
-
CompilerIdentifierSection
- Implements
- Inherited Members
Constructors
CompilerIdentifierSection(string)
Creates a new compiler identifier section.
public CompilerIdentifierSection(string identifier)
Parameters
identifier
stringThe compiler identifier.
Properties
CanRead
Indicates whether the raw contents of the section can be read using a BinaryStreamReader.
public bool CanRead { get; }
Property Value
Identifier
Gets or sets the identifier of the compiler that was used to create the ReadyToRun image.
public string Identifier { get; set; }
Property Value
Type
Gets the type of the ReadyToRun section.
public ReadyToRunSectionType Type { get; }
Property Value
Methods
CreateReader()
Creates a binary reader that reads the raw contents of the ReadyToRun section.
public BinaryStreamReader CreateReader()
Returns
- BinaryStreamReader
The reader.
Exceptions
- InvalidOperationException
Occurs when CanRead is
false
.
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.