Class BasePointerRelativeSymbol
- Namespace
- AsmResolver.Symbols.Pdb.Records
- Assembly
- AsmResolver.Symbols.Pdb.dll
Represents a symbol that is defined by an offset relative to the base pointer register.
public class BasePointerRelativeSymbol : CodeViewSymbol, IRegisterRelativeSymbol, IVariableSymbol, ICodeViewSymbol
- Inheritance
-
BasePointerRelativeSymbol
- Implements
- Derived
- Inherited Members
Constructors
BasePointerRelativeSymbol()
Initializes an empty base-pointer relative symbol.
protected BasePointerRelativeSymbol()
BasePointerRelativeSymbol(Utf8String, CodeViewTypeRecord, int)
Creates a new base-pointer relative symbol.
public BasePointerRelativeSymbol(Utf8String name, CodeViewTypeRecord variableType, int offset)
Parameters
name
Utf8StringThe name of the symbol.
variableType
CodeViewTypeRecordThe type of variable the symbol stores.
offset
intThe offset relative to the base pointer.
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 symbol.
public Utf8String? Name { get; set; }
Property Value
Offset
Gets or sets the offset relative to the base pointer.
public int Offset { get; set; }
Property Value
VariableType
Gets or sets the type of values the symbol stores.
public CodeViewTypeRecord? VariableType { get; set; }
Property Value
Methods
GetName()
Obtains the name of the symbol.
protected virtual Utf8String? GetName()
Returns
- Utf8String
The name
Remarks
This method is called upon initialization of the Name property.
GetVariableType()
Obtains the variable type of the symbol.
protected virtual CodeViewTypeRecord? GetVariableType()
Returns
- CodeViewTypeRecord
The variable type
Remarks
This method is called upon initialization of the VariableType property.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.