Class DebugInfoSection
- Namespace
- AsmResolver.PE.DotNet.ReadyToRun
- Assembly
- AsmResolver.PE.dll
Represents the ReadyToRun section containing additional debugging information for precompiled methods.
public class DebugInfoSection : SegmentBase, IReadyToRunSection, ISegment, IOffsetProvider, IWritable
- Inheritance
-
DebugInfoSection
- Implements
- Derived
- Inherited Members
Properties
CanRead
Indicates whether the raw contents of the section can be read using a BinaryStreamReader.
public virtual bool CanRead { get; }
Property Value
Entries
Gets an ordered collection of debug info entries stored in the section.
public NativeArray<DebugInfo> Entries { get; }
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 virtual BinaryStreamReader CreateReader()
Returns
- BinaryStreamReader
The reader.
Exceptions
- InvalidOperationException
Occurs when CanRead is
false
.
GetEntries()
Obtains the entries stored in the section.
protected virtual NativeArray<DebugInfo> GetEntries()
Returns
- NativeArray<DebugInfo>
The entries.
Remarks
This method is called upon initialization of the Entries property.
GetPhysicalSize()
Computes the number of bytes that the structure contains.
public override uint GetPhysicalSize()
Returns
- uint
The number of bytes.
UpdateOffsets(in RelocationParameters)
Assigns a new file and virtual offset to the segment and all its sub-components.
public override void UpdateOffsets(in RelocationParameters parameters)
Parameters
parameters
RelocationParametersThe parameters containing the new offset information for the segment.
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.