Table of Contents

Class NameTableBuffer

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

Represents a mutable buffer that stores strings referenced by exported symbols in the export data directory.

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

Methods

AddName(string?)

Adds the provided name to the buffer if it does not exist yet.

public void AddName(string? name)

Parameters

name string

The name to add.

GetNameRva(string?)

When the name was registered in the buffer, obtains the relative virtual address (RVA) to the name.

public uint GetNameRva(string? name)

Parameters

name string

The name.

Returns

uint

The RVA.

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.

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.