Table of Contents

Class ImportSectionsSection

Namespace
AsmResolver.PE.DotNet.ReadyToRun
Assembly
AsmResolver.PE.dll

Represents a section in the ReadyToRun directory of a .NET module that contains import sections.

public class ImportSectionsSection : SegmentBase, IReadyToRunSection, ISegment, IOffsetProvider, IWritable
Inheritance
ImportSectionsSection
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

bool

Sections

Gets the import sub-sections stored in the section.

public IList<ImportSection> Sections { get; }

Property Value

IList<ImportSection>

Type

Gets the type of the ReadyToRun section.

public ReadyToRunSectionType Type { get; }

Property Value

ReadyToRunSectionType

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.

GetPhysicalSize()

Computes the number of bytes that the structure contains.

public override uint GetPhysicalSize()

Returns

uint

The number of bytes.

GetSections()

Obtains the sub sections stored in the section.

protected virtual IList<ImportSection> GetSections()

Returns

IList<ImportSection>

The sections.

Remarks

This method is called upon initialization of the Sections property.

Write(BinaryStreamWriter)

Serializes the structure to an output stream.

public override void Write(BinaryStreamWriter writer)

Parameters

writer BinaryStreamWriter

The output stream to write the data to.