Table of Contents

Class DataSymbol

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

Represents a global or local data symbol.

public class DataSymbol : CodeViewSymbol, IVariableSymbol, ICodeViewSymbol
Inheritance
DataSymbol
Implements
Derived
Inherited Members

Constructors

DataSymbol()

Initializes an empty data symbol.

protected DataSymbol()

DataSymbol(Utf8String, CodeViewTypeRecord)

Creates a new named data symbol.

public DataSymbol(Utf8String name, CodeViewTypeRecord variableType)

Parameters

name Utf8String

The name of the symbol.

variableType CodeViewTypeRecord

The data type of the symbol.

Properties

CodeViewSymbolType

Gets the type of symbol this record encodes.

public override CodeViewSymbolType CodeViewSymbolType { get; }

Property Value

CodeViewSymbolType

IsGlobal

Gets or sets a value indicating whether the symbol is a global data symbol.

public bool IsGlobal { get; set; }

Property Value

bool

IsLocal

Gets or sets a value indicating whether the symbol is a local data symbol.

public bool IsLocal { get; set; }

Property Value

bool

Name

Gets or sets the name of the variable.

public Utf8String? Name { get; set; }

Property Value

Utf8String

Offset

Gets or sets the offset within the file that this symbol is defined at.

public uint Offset { get; set; }

Property Value

uint

SegmentIndex

Gets or sets the file segment index this symbol is located in.

public ushort SegmentIndex { get; set; }

Property Value

ushort

VariableType

Gets or sets the value type of the variable.

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 type of the variable.

protected virtual CodeViewTypeRecord? GetVariableType()

Returns

CodeViewTypeRecord

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