Table of Contents

Class HintNameTableBuffer

Namespace
AsmResolver.PE.Imports.Builder
Assembly
AsmResolver.PE.dll

Provides a mechanism for building up a table consisting of hint-name pairs.

public class HintNameTableBuffer : SegmentBase, ISegment, IOffsetProvider, IWritable
Inheritance
HintNameTableBuffer
Implements
Inherited Members

Methods

AddModule(ImportedModule)

Adds the name of the module and the names of all named entries to the hint-name table.

public void AddModule(ImportedModule module)

Parameters

module ImportedModule

The module to add.

GetHintNameRva(ImportedSymbol)

Gets the virtual address to the beginning of the hint-name pair associated to an imported member.

public uint GetHintNameRva(ImportedSymbol member)

Parameters

member ImportedSymbol

The member to obtain the hint-name RVA for.

Returns

uint

The virtual address.

Remarks

This method should only be used after the hint-name table has been relocated to the right location in the PE file.

GetModuleNameRva(ImportedModule)

Gets the virtual address to the beginning of the name of a module.

public uint GetModuleNameRva(ImportedModule module)

Parameters

module ImportedModule

The module to obtain the name RVA for.

Returns

uint

The virtual address.

Remarks

This method should only be used after the hint-name table has been relocated to the right location in the PE file.

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 RelocationParameters

The 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 BinaryStreamWriter

The output stream to write the data to.