Table of Contents

Class ImportSection

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

Represents a single import section in a ReadyToRun ImportSections section.

public class ImportSection : IWritable
Inheritance
ImportSection
Implements
Derived
Inherited Members

Properties

Attributes

Gets or sets attributes associated to the section.

public ImportSectionAttributes Attributes { get; set; }

Property Value

ImportSectionAttributes

AuxiliaryData

Gets a pointer to auxiliary data attached to this section, if available.

public ISegmentReference AuxiliaryData { get; set; }

Property Value

ISegmentReference

EntrySize

Gets or sets the size in bytes of a single slot in Slots.

public byte EntrySize { get; set; }

Property Value

byte

Remarks

Valid values are either 4 or 8.

Signatures

Gets a collection of signatures associated with each slot in Slots stored in the import section (if available).

public ReferenceTable Signatures { get; }

Property Value

ReferenceTable

Slots

Gets a collection of slots stored in the import section.

public ReferenceTable Slots { get; }

Property Value

ReferenceTable

Type

Gets or sets the type of slots stored in Slots.

public ImportSectionType Type { get; set; }

Property Value

ImportSectionType

Methods

GetPhysicalSize()

Computes the number of bytes that the structure contains.

public uint GetPhysicalSize()

Returns

uint

The number of bytes.

GetSignatures()

Obtains the signatures stored in this section.

protected virtual ReferenceTable GetSignatures()

Returns

ReferenceTable

The signatures.

Remarks

This method is called upon initialization of the Signatures property.

GetSlots()

Obtains the slots stored in this section.

protected virtual ReferenceTable GetSlots()

Returns

ReferenceTable

The slots.

Remarks

This method is called upon initialization of the Slots property.

Write(BinaryStreamWriter)

Serializes the structure to an output stream.

public void Write(BinaryStreamWriter writer)

Parameters

writer BinaryStreamWriter

The output stream to write the data to.