Table of Contents

Class OrdinalNamePointerTableBuffer

Namespace
AsmResolver.PE.Exports.Builder
Assembly
AsmResolver.PE.dll

Provides a mechanism for building up an ordinal and name-pointer table in an export data directory of a portable executable file.

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

Constructors

OrdinalNamePointerTableBuffer(NameTableBuffer)

Creates a new empty ordinal and name-pointer table buffer.

public OrdinalNamePointerTableBuffer(NameTableBuffer nameTableBuffer)

Parameters

nameTableBuffer NameTableBuffer

The table containing the names of all exports.

Properties

NamePointerTableRva

Gets the relative virtual address (RVA) to the name pointer table.

public uint NamePointerTableRva { get; }

Property Value

uint

NamePointerTableSize

Gets the raw size in bytes of the name pointer.

public uint NamePointerTableSize { get; }

Property Value

uint

OrdinalTableRva

Gets the relative virtual address (RVA) to the ordinal table.

public uint OrdinalTableRva { get; }

Property Value

uint

OrdinalTableSize

Gets the raw size in bytes of the ordinal table.

public uint OrdinalTableSize { get; }

Property Value

uint

Methods

AddSymbol(ExportedSymbol)

When the symbol is exported by name, adds the ordinal and name pointer pair to the buffer.

public void AddSymbol(ExportedSymbol symbol)

Parameters

symbol ExportedSymbol

The symbol to register.

GetPhysicalSize()

Computes the number of bytes that the structure contains.

public override uint GetPhysicalSize()

Returns

uint

The number of bytes.

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.