Table of Contents

Class ThunkSymbol

Namespace
AsmResolver.Symbols.Pdb.Records
Assembly
AsmResolver.Symbols.Pdb.dll

Represents a thunk symbol in a PDB module.

public class ThunkSymbol : CodeViewSymbol, IScopeCodeViewSymbol, ICodeViewSymbol, ICodeViewSymbolProvider
Inheritance
ThunkSymbol
Implements
Derived
Inherited Members

Constructors

ThunkSymbol()

Initializes an empty thunk symbol.

protected ThunkSymbol()

ThunkSymbol(Utf8String, ushort)

Creates a new named thunk symbol.

public ThunkSymbol(Utf8String name, ushort size)

Parameters

name Utf8String

The name.

size ushort

The size of the thunk in bytes.

Properties

CodeViewSymbolType

Gets the type of symbol this record encodes.

public override CodeViewSymbolType CodeViewSymbolType { get; }

Property Value

CodeViewSymbolType

Name

Gets or sets the name of the thunk.

public Utf8String? Name { get; set; }

Property Value

Utf8String

Offset

Gets or sets the offset within the segment the thunk is defined in.

public uint Offset { get; set; }

Property Value

uint

Ordinal

Gets or sets the ordinal of the thunk.

public ThunkOrdinal Ordinal { get; set; }

Property Value

ThunkOrdinal

SegmentIndex

Gets or sets the index of the segment the thunk is defined in.

public ushort SegmentIndex { get; set; }

Property Value

ushort

Size

Gets or sets the size of the thunk in bytes.

public ushort Size { get; set; }

Property Value

ushort

Symbols

Gets the list of defined symbols.

public IList<ICodeViewSymbol> Symbols { get; }

Property Value

IList<ICodeViewSymbol>

Methods

GetName()

Obtains the name of the thunk.

protected virtual Utf8String? GetName()

Returns

Utf8String

The name.

Remarks

This method is called upon initialization of the Name property.

GetSymbols()

Obtains the symbols defined within the thunk.

protected virtual IList<ICodeViewSymbol> GetSymbols()

Returns

IList<ICodeViewSymbol>

The symbols.

Remarks

This method is called upon initialization of the Symbols property.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.