Table of Contents

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 Utf8String

The name of the symbol.

variableType CodeViewTypeRecord

The type of variable the symbol stores.

offset int

The offset relative to the base pointer.

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 symbol.

public Utf8String? Name { get; set; }

Property Value

Utf8String

Offset

Gets or sets the offset relative to the base pointer.

public int Offset { get; set; }

Property Value

int

VariableType

Gets or sets the type of values the symbol stores.

public CodeViewTypeRecord? VariableType { get; set; }

Property Value

CodeViewTypeRecord

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.