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
Utf8StringThe name.
size
ushortThe size of the thunk in bytes.
Properties
CodeViewSymbolType
Gets the type of symbol this record encodes.
public override CodeViewSymbolType CodeViewSymbolType { get; }
Property Value
Name
Gets or sets the name of the thunk.
public Utf8String? Name { get; set; }
Property Value
Offset
Gets or sets the offset within the segment the thunk is defined in.
public uint Offset { get; set; }
Property Value
Ordinal
Gets or sets the ordinal of the thunk.
public ThunkOrdinal Ordinal { get; set; }
Property Value
SegmentIndex
Gets or sets the index of the segment the thunk is defined in.
public ushort SegmentIndex { get; set; }
Property Value
Size
Gets or sets the size of the thunk in bytes.
public ushort Size { get; set; }
Property Value
Symbols
Gets the list of defined symbols.
public IList<ICodeViewSymbol> Symbols { get; }
Property Value
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.