Table of Contents

Class SerializedImportSectionsSection

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

Provides a lazy-initialized implementation of the ImportSectionsSection that is read from a file.

public sealed class SerializedImportSectionsSection : ImportSectionsSection, IReadyToRunSection, ISegment, IOffsetProvider, IWritable
Inheritance
SerializedImportSectionsSection
Implements
Inherited Members

Constructors

SerializedImportSectionsSection(PEReaderContext, ref BinaryStreamReader)

Reads a single import sections section from the provided input stream.

public SerializedImportSectionsSection(PEReaderContext context, ref BinaryStreamReader reader)

Parameters

context PEReaderContext

The context in which the reader is situated in.

reader BinaryStreamReader

The input stream.

Properties

CanRead

Indicates whether the raw contents of the section can be read using a BinaryStreamReader.

public override bool CanRead { get; }

Property Value

bool

Methods

CreateReader()

Creates a binary reader that reads the raw contents of the ReadyToRun section.

public override BinaryStreamReader CreateReader()

Returns

BinaryStreamReader

The reader.

Exceptions

InvalidOperationException

Occurs when CanRead is false.

GetSections()

Obtains the sub sections stored in the section.

protected override IList<ImportSection> GetSections()

Returns

IList<ImportSection>

The sections.

Remarks

This method is called upon initialization of the Sections property.